Package org.apache.maven.plugin.internal
Class DefaultPluginManager
java.lang.Object
org.apache.maven.plugin.internal.DefaultPluginManager
- All Implemented Interfaces:
PluginManager
- Author:
- Benjamin Bentmann
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.PluginManager
ROLE
-
Constructor Summary
ConstructorDescriptionDefaultPluginManager
(org.codehaus.plexus.PlexusContainer container, MavenPluginManager pluginManager, PluginVersionResolver pluginVersionResolver, PluginPrefixResolver pluginPrefixResolver, LegacySupport legacySupport) -
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) org.apache.maven.plugin.descriptor.PluginDescriptor
getPluginDescriptorForPrefix
(String prefix) org.apache.maven.plugin.descriptor.PluginDescriptor
loadPluginDescriptor
(Plugin plugin, MavenProject project, MavenSession session) org.apache.maven.plugin.descriptor.PluginDescriptor
loadPluginFully
(Plugin plugin, MavenProject project, MavenSession session) org.apache.maven.plugin.descriptor.PluginDescriptor
verifyPlugin
(Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository)
-
Constructor Details
-
DefaultPluginManager
@Inject public DefaultPluginManager(org.codehaus.plexus.PlexusContainer container, MavenPluginManager pluginManager, PluginVersionResolver pluginVersionResolver, PluginPrefixResolver pluginPrefixResolver, LegacySupport legacySupport)
-
-
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
public org.apache.maven.plugin.descriptor.PluginDescriptor getPluginDescriptorForPrefix(String prefix) - Specified by:
getPluginDescriptorForPrefix
in interfacePluginManager
-
loadPluginDescriptor
public org.apache.maven.plugin.descriptor.PluginDescriptor loadPluginDescriptor(Plugin plugin, MavenProject project, MavenSession session) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException -
loadPluginFully
public org.apache.maven.plugin.descriptor.PluginDescriptor loadPluginFully(Plugin plugin, MavenProject project, MavenSession session) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException -
verifyPlugin
public org.apache.maven.plugin.descriptor.PluginDescriptor verifyPlugin(Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException
-