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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeMojo
(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.ClassRealm
getPluginRealm
(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) void
setMojoExecutionListeners
(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:
loadPlugin
in 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.InvalidPluginDescriptorException
PluginDescriptorParsingException
-
executeMojo
public void executeMojo(MavenSession session, MojoExecution mojoExecution) throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException - Specified by:
executeMojo
in interfaceBuildPluginManager
- Throws:
MojoFailureException
MojoExecutionException
PluginConfigurationException
PluginManagerException
-
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:
getPluginRealm
in interfaceBuildPluginManager
- Throws:
PluginResolutionException
PluginManagerException
-
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
-