* @required
*/
private File xarDirectory;
public void execute() throws MojoExecutionException {
Archiver archiver = new DirectoryArchiver();
archiver.setDestFile(xarDirectory);
try {
buildArchive(archiver);
archiver.createArchive();
} catch (ArchiverException e) {
throw new MojoExecutionException("Unable to build archive", e);
} catch (IOException e) {
throw new MojoExecutionException("Unable to build archive", e);
}