org.apache.maven.plugin.internal
Class DefaultPluginManager

java.lang.Object
  extended by 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
DefaultPluginManager()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPluginManager

public DefaultPluginManager()
Method Detail

executeMojo

public void executeMojo(MavenProject project,
                        MojoExecution execution,
                        MavenSession session)
                 throws MojoExecutionException,
                        ArtifactResolutionException,
                        MojoFailureException,
                        ArtifactNotFoundException,
                        InvalidDependencyVersionException,
                        PluginManagerException,
                        PluginConfigurationException
Specified by:
executeMojo in interface PluginManager
Throws:
MojoExecutionException
ArtifactResolutionException
MojoFailureException
ArtifactNotFoundException
InvalidDependencyVersionException
PluginManagerException
PluginConfigurationException

getPluginComponent

public Object getPluginComponent(Plugin plugin,
                                 String role,
                                 String roleHint)
                          throws PluginManagerException,
                                 ComponentLookupException
Specified by:
getPluginComponent in interface PluginManager
Throws:
PluginManagerException
ComponentLookupException

getPluginComponents

public Map getPluginComponents(Plugin plugin,
                               String role)
                        throws ComponentLookupException,
                               PluginManagerException
Specified by:
getPluginComponents in interface PluginManager
Throws:
ComponentLookupException
PluginManagerException

getPluginDefinitionForPrefix

public Plugin getPluginDefinitionForPrefix(String prefix,
                                           MavenSession session,
                                           MavenProject project)
Specified by:
getPluginDefinitionForPrefix in interface PluginManager

getPluginDescriptorForPrefix

public PluginDescriptor getPluginDescriptorForPrefix(String prefix)
Specified by:
getPluginDescriptorForPrefix in interface PluginManager

loadPluginDescriptor

public PluginDescriptor loadPluginDescriptor(Plugin plugin,
                                             MavenProject project,
                                             MavenSession session)
                                      throws ArtifactResolutionException,
                                             PluginVersionResolutionException,
                                             ArtifactNotFoundException,
                                             InvalidVersionSpecificationException,
                                             InvalidPluginException,
                                             PluginManagerException,
                                             PluginNotFoundException,
                                             PluginVersionNotFoundException
Specified by:
loadPluginDescriptor in interface PluginManager
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
Specified by:
loadPluginFully in interface PluginManager
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
Specified by:
verifyPlugin in interface PluginManager
Throws:
ArtifactResolutionException
PluginVersionResolutionException
ArtifactNotFoundException
InvalidVersionSpecificationException
InvalidPluginException
PluginManagerException
PluginNotFoundException
PluginVersionNotFoundException


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.