org.apache.maven.plugin
Interface MavenPluginManager

Provides basic services to manage Maven plugins and their mojos. This component is kept general in its design such
that the plugins/mojos can be used in arbitrary contexts. In particular, the mojos can be used for ordinary build
plugins as well as special purpose plugins like reports.

getPluginDescriptor(Plugin plugin,
List<org.eclipse.aether.repository.RemoteRepository> repositories,
org.eclipse.aether.RepositorySystemSession session)
Retrieves the descriptor for the specified plugin from its main artifact.

getConfiguredMojo

Looks up the mojo for the specified mojo execution and populates its parameters from the configuration given by
the mojo execution. The mojo/plugin descriptor associated with the mojo execution provides the class realm to
lookup the mojo from. Warning: The returned mojo instance must be released via
releaseMojo(Object, MojoExecution) when the mojo is no longer needed to free any resources allocated for
it.

Parameters:

mojoInterface - The component role of the mojo, must not be null.

session - The build session in whose context the mojo will be used, must not be null.

mojoExecution - The mojo execution to retrieve the mojo for, must not be null.