@Override
protected boolean execute() throws Exception {
// install the artifact
try {
ArtifactInstallFactory installFactory = artifactInstallFactoryProvider.get();
if (forceInstall())
installFactory.setForceInstall(true);
if (localrepo != null)
installFactory.setLocalRepository(localrepo);
installFactory.setBeesClientConfiguration(getBeesClientBase().getBeesClientConfiguration());
GAV gav = new GAV(getArtifact());
if (pom != null && jar != null) {
gav = installFactory.install(gav, jar, pom);
} else
gav = installFactory.install(gav);
System.out.println("Plugin installed: " + gav);
} catch (Exception e) {
throw (IOException) new IOException("Failed to install " + getArtifact()).initCause(e);
}
return true;