@Component(role=PluginManager.class) public class DefaultPluginManager extends Object implements PluginManager
ROLE
Constructor and Description |
---|
DefaultPluginManager() |
Modifier and Type | Method and Description |
---|---|
void |
executeMojo(MavenProject project,
MojoExecution execution,
MavenSession session) |
Object |
getPluginComponent(Plugin plugin,
String role,
String roleHint) |
Map<String,Object> |
getPluginComponents(Plugin plugin,
String role) |
Plugin |
getPluginDefinitionForPrefix(String prefix,
MavenSession session,
MavenProject project) |
PluginDescriptor |
getPluginDescriptorForPrefix(String prefix) |
PluginDescriptor |
loadPluginDescriptor(Plugin plugin,
MavenProject project,
MavenSession session) |
PluginDescriptor |
loadPluginFully(Plugin plugin,
MavenProject project,
MavenSession session) |
PluginDescriptor |
verifyPlugin(Plugin plugin,
MavenProject project,
Settings settings,
ArtifactRepository localRepository) |
public void executeMojo(MavenProject project, MojoExecution execution, MavenSession session) throws MojoExecutionException, ArtifactResolutionException, MojoFailureException, ArtifactNotFoundException, InvalidDependencyVersionException, PluginManagerException, PluginConfigurationException
public Object getPluginComponent(Plugin plugin, String role, String roleHint) throws PluginManagerException, org.codehaus.plexus.component.repository.exception.ComponentLookupException
getPluginComponent
in interface PluginManager
PluginManagerException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public Map<String,Object> getPluginComponents(Plugin plugin, String role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException, PluginManagerException
getPluginComponents
in interface PluginManager
org.codehaus.plexus.component.repository.exception.ComponentLookupException
PluginManagerException
public Plugin getPluginDefinitionForPrefix(String prefix, MavenSession session, MavenProject project)
getPluginDefinitionForPrefix
in interface PluginManager
public PluginDescriptor getPluginDescriptorForPrefix(String prefix)
getPluginDescriptorForPrefix
in interface PluginManager
public PluginDescriptor loadPluginDescriptor(Plugin plugin, MavenProject project, MavenSession session) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException
public PluginDescriptor loadPluginFully(Plugin plugin, MavenProject project, MavenSession session) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException
public PluginDescriptor verifyPlugin(Plugin plugin, MavenProject project, Settings settings, ArtifactRepository localRepository) throws ArtifactResolutionException, PluginVersionResolutionException, ArtifactNotFoundException, InvalidVersionSpecificationException, InvalidPluginException, PluginManagerException, PluginNotFoundException, PluginVersionNotFoundException
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.