@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 |
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 DefaultPluginManager()
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, ComponentLookupException
getPluginComponent
in interface PluginManager
PluginManagerException
ComponentLookupException
public Map getPluginComponents(Plugin plugin, String role) throws ComponentLookupException, PluginManagerException
getPluginComponents
in interface PluginManager
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–2013 The Apache Software Foundation. All rights reserved.