@Component(role=BuildPluginManager.class) public class DefaultBuildPluginManager extends java.lang.Object implements BuildPluginManager
Modifier and Type | Field and Description |
---|---|
private LegacySupport |
legacySupport |
private MavenPluginManager |
mavenPluginManager |
private MojoExecutionListener |
mojoExecutionListener |
private java.util.List<MojoExecutionListener> |
mojoExecutionListeners |
private MojoExecutionScope |
scope |
Constructor and Description |
---|
DefaultBuildPluginManager() |
Modifier and Type | Method and Description |
---|---|
void |
executeMojo(MavenSession session,
MojoExecution mojoExecution) |
MojoDescriptor |
getMojoDescriptor(Plugin plugin,
java.lang.String goal,
java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories,
org.eclipse.aether.RepositorySystemSession session) |
org.codehaus.plexus.classworlds.realm.ClassRealm |
getPluginRealm(MavenSession session,
PluginDescriptor pluginDescriptor)
TODO pluginDescriptor classRealm and artifacts are set as a side effect of this
call, which is not nice.
|
PluginDescriptor |
loadPlugin(Plugin plugin,
java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories,
org.eclipse.aether.RepositorySystemSession session) |
void |
setMojoExecutionListeners(java.util.List<MojoExecutionListener> listeners) |
@Requirement private MavenPluginManager mavenPluginManager
@Requirement private LegacySupport legacySupport
@Requirement private MojoExecutionScope scope
private MojoExecutionListener mojoExecutionListener
@Requirement(role=MojoExecutionListener.class) private java.util.List<MojoExecutionListener> mojoExecutionListeners
public void setMojoExecutionListeners(java.util.List<MojoExecutionListener> listeners)
public PluginDescriptor loadPlugin(Plugin plugin, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException
loadPlugin
in interface BuildPluginManager
plugin
- repositories
- session
- PluginNotFoundException
- The plugin could not be found in any repositories.PluginResolutionException
- The plugin could be found but could not be resolved.InvalidPluginDescriptorException
PluginDescriptorParsingException
public void executeMojo(MavenSession session, MojoExecution mojoExecution) throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException
executeMojo
in interface BuildPluginManager
MojoFailureException
MojoExecutionException
PluginConfigurationException
PluginManagerException
public org.codehaus.plexus.classworlds.realm.ClassRealm getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor) throws PluginResolutionException, PluginManagerException
getPluginRealm
in interface BuildPluginManager
PluginResolutionException
PluginManagerException
public MojoDescriptor getMojoDescriptor(Plugin plugin, java.lang.String goal, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException