Kernel kernel = new BasicKernel("Assembly");
try {
PluginInstallerGBean installer = new PluginInstallerGBean(targetRepositoryPath, targetServerPath, servers, kernel, getClass().getClassLoader());
installer.install(pluginList, sourceRepo, true, null, null, downloadPoller);
} finally {
kernel.shutdown();
}
log.info("Installed plugins: ");
for (Artifact artifact: downloadPoller.getInstalledConfigIDs()) {
log.info(" " + artifact);
}