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 Summary
Constructors - 
Method Summary
Modifier 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
- 
DefaultBuildPluginManager
public DefaultBuildPluginManager() 
 - 
 - 
Method Details
- 
setMojoExecutionListeners
 - 
loadPlugin
public PluginDescriptor loadPlugin(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException - Specified by:
 loadPluginin interfaceBuildPluginManager- 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.InvalidPluginDescriptorExceptionPluginDescriptorParsingException
 - 
executeMojo
public void executeMojo(MavenSession session, MojoExecution mojoExecution) throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException - Specified by:
 executeMojoin interfaceBuildPluginManager- Throws:
 MojoFailureExceptionMojoExecutionExceptionPluginConfigurationExceptionPluginManagerException
 - 
getPluginRealm
public 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 interfaceBuildPluginManager- Throws:
 PluginResolutionExceptionPluginManagerException
 - 
getMojoDescriptor
public MojoDescriptor getMojoDescriptor(Plugin plugin, String goal, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException  
 -