}
private void archive() throws MojoExecutionException {
// jar the result
try {
JarArchiver archiver = new JarArchiver();
archiver.addDirectory(releaseDirectory, new String[]{"*/**"}, new String[]{});
archiver.setDestFile(new File(dojoDirectory, RELEASE_DIR + ".jar"));
archiver.createArchive();
} catch (Exception e) {
log.error("Failed to archive dojo build", e);
throw new MojoExecutionException("Failed to archive dojo build");
}
}