@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<org.eclipse.aether.repository.RemoteRepository> repositories,
org.eclipse.aether.RepositorySystemSession session) |
org.codehaus.plexus.classworlds.realm.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<org.eclipse.aether.repository.RemoteRepository> repositories,
org.eclipse.aether.RepositorySystemSession session) |
void |
setMojoExecutionListeners(List<MojoExecutionListener> listeners) |
public void setMojoExecutionListeners(List<MojoExecutionListener> listeners)
public PluginDescriptor loadPlugin(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.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 org.codehaus.plexus.classworlds.realm.ClassRealm getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor) throws PluginResolutionException, PluginManagerException
getPluginRealm
in interface BuildPluginManager
PluginResolutionException
PluginManagerException
public MojoDescriptor getMojoDescriptor(Plugin plugin, String goal, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.