@Component(role=BuildPluginManager.class) public class DefaultBuildPluginManager extends Object implements BuildPluginManager
Constructor and Description |
---|
DefaultBuildPluginManager() |
Modifier and Type | Method and Description |
---|---|
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) |
public DefaultBuildPluginManager()
public PluginDescriptor loadPlugin(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException
loadPlugin
in interface BuildPluginManager
plugin
- repositories
- session
- PluginNotFoundException
- The plugin could not be found in any repositories.PluginResolutionException
- The plugin could be found but could not be resolved.InvalidPluginDescriptorException
PluginDescriptorParsingException
public void executeMojo(MavenSession session, MojoExecution mojoExecution) throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException
executeMojo
in interface BuildPluginManager
MojoFailureException
MojoExecutionException
PluginConfigurationException
PluginManagerException
public ClassRealm getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor) throws PluginResolutionException, PluginManagerException
getPluginRealm
in interface BuildPluginManager
PluginResolutionException
PluginManagerException
public MojoDescriptor getMojoDescriptor(Plugin plugin, String goal, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.