@Option(completer = InstalledPluginCompleter.class, description = "plugin-name", required = true,
help = "The fully qualified plugin name e.g: 'org.jboss.forge.plugin:version'") final String pluginName,
final PipeOut out) throws Exception
{
PluginEntry plugin = PluginEntry.fromCoordinates(pluginName);
if (!InstalledPluginRegistry.has(plugin))
{
throw new RuntimeException("No such installed plugin [" + pluginName + "]");
}
PluginEntry installedPlugin = InstalledPluginRegistry.get(plugin);
InstalledPluginRegistry.remove(installedPlugin);
pluginRemovedEvent.fire(new PluginRemoved(installedPlugin));
if (!InstalledPluginRegistry.has(plugin))
{
ShellMessages.success(out, "Successfully removed [" + pluginName + "]");