Class MojoDescriptorCreator
java.lang.Object
org.apache.maven.lifecycle.internal.MojoDescriptorCreator
Resolves dependencies for the artifacts in context of the lifecycle build
NOTE: This class is not part of any public api and can be changed or deleted without prior notice.- Since:
- 3.0
- Author:
- Benjamin Bentmann, Jason van Zyl, jdcasey, Kristian Rosenvold (extracted class only)
-
Constructor Summary
ConstructorDescriptionMojoDescriptorCreator
(PluginVersionResolver pluginVersionResolver, BuildPluginManager pluginManager, PluginPrefixResolver pluginPrefixResolver, LifecyclePluginResolver lifecyclePluginResolver) -
Method Summary
Modifier and TypeMethodDescriptionstatic Xpp3Dom
convert
(MojoDescriptor mojoDescriptor) findPluginForPrefix
(String prefix, MavenSession session) getMojoDescriptor
(String task, MavenSession session, MavenProject project)
-
Constructor Details
-
MojoDescriptorCreator
@Inject public MojoDescriptorCreator(PluginVersionResolver pluginVersionResolver, BuildPluginManager pluginManager, PluginPrefixResolver pluginPrefixResolver, LifecyclePluginResolver lifecyclePluginResolver)
-
-
Method Details
-
convert
-
getMojoDescriptor
public MojoDescriptor getMojoDescriptor(String task, MavenSession session, MavenProject project) throws PluginNotFoundException, PluginResolutionException, PluginDescriptorParsingException, MojoNotFoundException, NoPluginFoundForPrefixException, InvalidPluginDescriptorException, PluginVersionResolutionException -
findPluginForPrefix
public Plugin findPluginForPrefix(String prefix, MavenSession session) throws NoPluginFoundForPrefixException - Throws:
NoPluginFoundForPrefixException
-