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
-
Constructor Summary
ConstructorDescriptionMojoDescriptorCreator
(PluginVersionResolver pluginVersionResolver, BuildPluginManager pluginManager, PluginPrefixResolver pluginPrefixResolver, LifecyclePluginResolver lifecyclePluginResolver) -
Method Summary
Modifier and TypeMethodDescriptionstatic XmlNode
convert
(MojoDescriptor mojoDescriptor) static org.codehaus.plexus.util.xml.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
-
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
-