/** * Return all goals requested to be attained. * * @return All goal names. */ public Set getAllGoalNames() { return getPluginManager().getGoalNames(); }
/** * Get a given goal's description. * * @param goalName Goal name to get the description for. * @return Goal description. */ public String getGoalDescription( String goalName ) { return getPluginManager().getGoalDescription( goalName ); }
/** Initialize all plugins. * * @throws Exception If an error occurs while initializing * any plugin. */ private void initializePluginManager() throws Exception { getPluginManager().initialize(); }
/** * Get the plugin context using the plugin name. * * @param pluginId Plugin name. * @return The plugin context create for the named plugin when it was loaded for * this project. * @throws UnknownPluginException if the plugin could not be found * @todo [1.0] - when we are caching plugins, this should load on demand, also move to plugin manager * @deprecated use the tag instead */ public MavenJellyContext getPluginContext( String pluginId ) throws Exception { PluginManager pluginManager = context.getMavenSession().getPluginManager(); return pluginManager.getPluginContext( pluginId ); }
public void doTag( XMLOutput output ) throws MissingAttributeException, JellyTagException { checkAttribute( file, "file" ); PluginManager manager = getMavenContext().getMavenSession().getPluginManager(); try { manager.installPlugin( file, null, cache ); } catch ( Exception e ) { throw new JellyTagException( "error installing plugin", e ); } } }
public void doTag( XMLOutput output ) throws MissingAttributeException, JellyTagException { checkAttribute( artifactId, "artifactId" ); PluginManager manager = getMavenContext().getMavenSession().getPluginManager(); try { manager.uninstallPlugin( artifactId ); } catch ( IOException e ) { throw new JellyTagException( "error uninstalling plugin", e ); } } }
getMavenContext().getMavenSession().getPluginManager().processDependencies( project );