org.apache.maven.plugin
Class DefaultBuildPluginManager

java.lang.Object
  extended by org.apache.maven.plugin.DefaultBuildPluginManager
All Implemented Interfaces:
BuildPluginManager

@Component(role=BuildPluginManager.class)
public class DefaultBuildPluginManager
extends Object
implements BuildPluginManager


Constructor Summary
DefaultBuildPluginManager()
           
 
Method Summary
 void executeMojo(MavenSession session, MojoExecution mojoExecution)
           
 MojoDescriptor getMojoDescriptor(Plugin plugin, String goal, List<RemoteRepository> repositories, RepositorySystemSession session)
           
 ClassRealm getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor)
          TODO pluginDescriptor classRealm and artifacts are set as a side effect of this call, which is not nice.
 PluginDescriptor loadPlugin(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBuildPluginManager

public DefaultBuildPluginManager()
Method Detail

loadPlugin

public PluginDescriptor loadPlugin(Plugin plugin,
                                   List<RemoteRepository> repositories,
                                   RepositorySystemSession session)
                            throws PluginNotFoundException,
                                   PluginResolutionException,
                                   PluginDescriptorParsingException,
                                   InvalidPluginDescriptorException
Specified by:
loadPlugin in interface BuildPluginManager
Parameters:
plugin -
repositoryRequest -
Returns:
PluginDescriptor The component descriptor for the Maven plugin.
Throws:
PluginNotFoundException - The plugin could not be found in any repositories.
PluginResolutionException - The plugin could be found but could not be resolved.
InvalidPluginDescriptorException
PluginDescriptorParsingException

executeMojo

public void executeMojo(MavenSession session,
                        MojoExecution mojoExecution)
                 throws MojoFailureException,
                        MojoExecutionException,
                        PluginConfigurationException,
                        PluginManagerException
Specified by:
executeMojo in interface BuildPluginManager
Throws:
MojoFailureException
MojoExecutionException
PluginConfigurationException
PluginManagerException

getPluginRealm

public ClassRealm getPluginRealm(MavenSession session,
                                 PluginDescriptor pluginDescriptor)
                          throws PluginResolutionException,
                                 PluginManagerException
TODO pluginDescriptor classRealm and artifacts are set as a side effect of this call, which is not nice.

Specified by:
getPluginRealm in interface BuildPluginManager
Throws:
PluginResolutionException
PluginManagerException

getMojoDescriptor

public MojoDescriptor getMojoDescriptor(Plugin plugin,
                                        String goal,
                                        List<RemoteRepository> repositories,
                                        RepositorySystemSession session)
                                 throws PluginNotFoundException,
                                        PluginResolutionException,
                                        PluginDescriptorParsingException,
                                        MojoNotFoundException,
                                        InvalidPluginDescriptorException
Specified by:
getMojoDescriptor in interface BuildPluginManager
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
InvalidPluginDescriptorException


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.