if (!libDir.exists() && !libDir.mkdirs()) {
throw new MojoExecutionException("Unable to create app lib dir: " + libDir);
}
if (updateExistingJar) {
createJarParams.addResource(null, new File(build.getDirectory() + File.separator + build.getFinalName() + ".jar"));
} else {
createJarParams.addResource(new File(build.getOutputDirectory()), "");
}
try {