org.apache.maven.lifecycle.internal
Class MojoDescriptorCreator

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.MojoDescriptorCreator

@Component(role=MojoDescriptorCreator.class)
public class MojoDescriptorCreator
extends Object

Resolves dependencies for the artifacts in context of the lifecycle build

Since:
3.0
Author:
Benjamin Bentmann, Jason van Zyl, jdcasey, Kristian Rosenvold (extracted class only)

NOTE: This class is not part of any public api and can be changed or deleted without prior notice.


Constructor Summary
MojoDescriptorCreator()
           
MojoDescriptorCreator(PluginVersionResolver pluginVersionResolver, BuildPluginManager pluginManager, PluginPrefixResolver pluginPrefixResolver, LifecyclePluginResolver lifecyclePluginResolver)
           
 
Method Summary
static org.codehaus.plexus.util.xml.Xpp3Dom convert(MojoDescriptor mojoDescriptor)
           
 Plugin findPluginForPrefix(String prefix, MavenSession session)
           
 MojoDescriptor getMojoDescriptor(String task, MavenSession session, MavenProject project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MojoDescriptorCreator

public MojoDescriptorCreator()

MojoDescriptorCreator

public MojoDescriptorCreator(PluginVersionResolver pluginVersionResolver,
                             BuildPluginManager pluginManager,
                             PluginPrefixResolver pluginPrefixResolver,
                             LifecyclePluginResolver lifecyclePluginResolver)
Method Detail

convert

public static org.codehaus.plexus.util.xml.Xpp3Dom convert(MojoDescriptor mojoDescriptor)

getMojoDescriptor

public MojoDescriptor getMojoDescriptor(String task,
                                        MavenSession session,
                                        MavenProject project)
                                 throws PluginNotFoundException,
                                        PluginResolutionException,
                                        PluginDescriptorParsingException,
                                        MojoNotFoundException,
                                        NoPluginFoundForPrefixException,
                                        InvalidPluginDescriptorException,
                                        PluginVersionResolutionException
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginVersionResolutionException

findPluginForPrefix

public Plugin findPluginForPrefix(String prefix,
                                  MavenSession session)
                           throws NoPluginFoundForPrefixException
Throws:
NoPluginFoundForPrefixException


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.