}
private void installPlugins(String[] args) throws Exception {
Set<Map.Entry<String, GAV>> set = pluginsToInstallList.entrySet();
if (set.size() > 0) {
ACommand installPluginCmd = commandService.getCommand(SDK_PLUGIN_INSTALL);
Iterator<Map.Entry<String, GAV>> it = set.iterator();
while (it.hasNext()) {
Map.Entry<String, GAV> entry = it.next();
System.out.println("Installing plugin: " + entry.getValue());
List<String> piArgs;
if (isVerbose(args))
piArgs = Arrays.asList(SDK_PLUGIN_INSTALL, entry.getValue().toString(), "-f", "-v");
else
piArgs = Arrays.asList(SDK_PLUGIN_INSTALL, entry.getValue().toString(), "-f");
installPluginCmd.run(piArgs);
pluginsToInstallList.remove(entry.getKey());
}
// Reload the plugins commands
CommandServiceImpl service = (CommandServiceImpl) commandService;
service.loadCommandProperties();