@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)  | 
void | 
setMojoExecutionListeners(List<MojoExecutionListener> listeners)  | 
public void setMojoExecutionListeners(List<MojoExecutionListener> listeners)
public PluginDescriptor loadPlugin(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, InvalidPluginDescriptorException
loadPlugin in interface BuildPluginManagerplugin - repositories - session - PluginNotFoundException - The plugin could not be found in any repositories.PluginResolutionException - The plugin could be found but could not be resolved.InvalidPluginDescriptorExceptionPluginDescriptorParsingExceptionpublic void executeMojo(MavenSession session, MojoExecution mojoExecution) throws MojoFailureException, MojoExecutionException, PluginConfigurationException, PluginManagerException
executeMojo in interface BuildPluginManagerMojoFailureExceptionMojoExecutionExceptionPluginConfigurationExceptionPluginManagerExceptionpublic ClassRealm getPluginRealm(MavenSession session, PluginDescriptor pluginDescriptor) throws PluginResolutionException, PluginManagerException
getPluginRealm in interface BuildPluginManagerPluginResolutionExceptionPluginManagerExceptionpublic MojoDescriptor getMojoDescriptor(Plugin plugin, String goal, List<RemoteRepository> repositories, RepositorySystemSession session) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, InvalidPluginDescriptorException
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.