Package org.apache.maven.plugin.internal
Class DefaultPluginManager
java.lang.Object
org.apache.maven.plugin.internal.DefaultPluginManager
- All Implemented Interfaces:
PluginManager
@Component(role=PluginManager.class)
public class DefaultPluginManager
extends Object
implements PluginManager
- Author:
- Benjamin Bentmann
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.PluginManager
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeMojo
(MavenProject project, MojoExecution execution, MavenSession session) getPluginComponent
(Plugin plugin, String role, String roleHint) getPluginComponents
(Plugin plugin, String role) getPluginDefinitionForPrefix
(String prefix, MavenSession session, MavenProject project) getPluginDescriptorForPrefix
(String prefix) loadPluginDescriptor
(Plugin plugin, MavenProject project, MavenSession session) loadPluginFully
(Plugin plugin, MavenProject project, MavenSession session) verifyPlugin
(Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository)
-
Constructor Details
-
DefaultPluginManager
public DefaultPluginManager()
-
-
Method Details
-
executeMojo
public void executeMojo(MavenProject project, MojoExecution execution, MavenSession session) throws MojoExecutionException, ArtifactResolutionException, MojoFailureException, ArtifactNotFoundException, InvalidDependencyVersionException, PluginManagerException, PluginConfigurationException -
getPluginComponent
public Object getPluginComponent(Plugin plugin, String role, String roleHint) throws PluginManagerException, org.codehaus.plexus.component.repository.exception.ComponentLookupException - Specified by:
getPluginComponent
in interfacePluginManager
- Throws:
PluginManagerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
-
getPluginComponents
public Map<String,Object> getPluginComponents(Plugin plugin, String role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, PluginManagerException - Specified by:
getPluginComponents
in interfacePluginManager
- Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException
PluginManagerException
-
getPluginDefinitionForPrefix
public Plugin getPluginDefinitionForPrefix(String prefix, MavenSession session, MavenProject project) - Specified by:
getPluginDefinitionForPrefix
in interfacePluginManager
-
getPluginDescriptorForPrefix
- Specified by:
getPluginDescriptorForPrefix
in interfacePluginManager
-
loadPluginDescriptor
public PluginDescriptor loadPluginDescriptor(Plugin plugin, MavenProject project, MavenSession session) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException -
loadPluginFully
public PluginDescriptor loadPluginFully(Plugin plugin, MavenProject project, MavenSession session) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException -
verifyPlugin
public PluginDescriptor verifyPlugin(Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException
-