Package org.apache.maven.plugin
Class DefaultBuildPluginManager
java.lang.Object
org.apache.maven.plugin.DefaultBuildPluginManager
- All Implemented Interfaces:
- BuildPluginManager
@Component(role=BuildPluginManager.class)
public class DefaultBuildPluginManager
extends Object
implements BuildPluginManager
DefaultBuildPluginManager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecuteMojo(MavenSession session, MojoExecution mojoExecution) getMojoDescriptor(Plugin plugin, String goal, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) org.codehaus.plexus.classworlds.realm.ClassRealmgetPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor) TODO pluginDescriptor classRealm and artifacts are set as a side effect of this call, which is not nice.loadPlugin(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) voidsetMojoExecutionListeners(List<MojoExecutionListener> listeners) 
- 
Constructor Details- 
DefaultBuildPluginManagerpublic DefaultBuildPluginManager()
 
- 
- 
Method Details- 
setMojoExecutionListeners
- 
loadPluginpublic PluginDescriptor loadPlugin(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException - Specified by:
- loadPluginin interface- BuildPluginManager
- Parameters:
- plugin-
- repositories-
- session-
- Returns:
- PluginDescriptor The component descriptor for the Maven plugin.
- Throws:
- PluginNotFoundException- The plugin could not be found in any repositories.
- PluginResolutionException- The plugin could be found but could not be resolved.
- InvalidPluginDescriptorException
- PluginDescriptorParsingException
 
- 
executeMojopublic void executeMojo(MavenSession session, MojoExecution mojoExecution) throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException - Specified by:
- executeMojoin interface- BuildPluginManager
- Throws:
- MojoFailureException
- MojoExecutionException
- PluginConfigurationException
- PluginManagerException
 
- 
getPluginRealmpublic org.codehaus.plexus.classworlds.realm.ClassRealm getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor) throws PluginResolutionException, PluginManagerException TODO pluginDescriptor classRealm and artifacts are set as a side effect of this call, which is not nice.- Specified by:
- getPluginRealmin interface- BuildPluginManager
- Throws:
- PluginResolutionException
- PluginManagerException
 
- 
getMojoDescriptorpublic MojoDescriptor getMojoDescriptor(Plugin plugin, String goal, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException 
 
-