org.apache.maven.lifecycle
Class DefaultLifecycleExecutor
java.lang.Object
org.apache.maven.lifecycle.DefaultLifecycleExecutor
- All Implemented Interfaces:
- LifecycleExecutor
@Component(role=LifecycleExecutor.class)
public class DefaultLifecycleExecutor
- extends Object
- implements LifecycleExecutor
A facade that provides lifecycle services to components outside maven core.
Note that this component is not normally used from within core itself.
- Author:
- Jason van Zyl, Benjamin Bentmann, Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLifecycleExecutor
public DefaultLifecycleExecutor()
execute
public void execute(MavenSession session)
- Specified by:
execute
in interface LifecycleExecutor
getPluginsBoundByDefaultToAllLifecycles
public Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(String packaging)
- Specified by:
getPluginsBoundByDefaultToAllLifecycles
in interface LifecycleExecutor
- Returns:
- The plugins bound to the lifecycles of the specified packaging or
null
if the packaging is
unknown.
getPhaseToLifecycleMap
@Deprecated
public Map<String,Lifecycle> getPhaseToLifecycleMap()
- Deprecated.
calculateExecutionPlan
public MavenExecutionPlan calculateExecutionPlan(MavenSession session,
String... tasks)
throws PluginNotFoundException,
PluginResolutionException,
PluginDescriptorParsingException,
MojoNotFoundException,
NoPluginFoundForPrefixException,
InvalidPluginDescriptorException,
PluginManagerException,
LifecyclePhaseNotFoundException,
LifecycleNotFoundException,
PluginVersionResolutionException
- Specified by:
calculateExecutionPlan
in interface LifecycleExecutor
- Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
calculateForkedExecutions
public void calculateForkedExecutions(MojoExecution mojoExecution,
MavenSession session)
throws MojoNotFoundException,
PluginNotFoundException,
PluginResolutionException,
PluginDescriptorParsingException,
NoPluginFoundForPrefixException,
InvalidPluginDescriptorException,
LifecyclePhaseNotFoundException,
LifecycleNotFoundException,
PluginVersionResolutionException
- Specified by:
calculateForkedExecutions
in interface LifecycleExecutor
- Throws:
MojoNotFoundException
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException
executeForkedExecutions
public List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution,
MavenSession session)
throws LifecycleExecutionException
- Specified by:
executeForkedExecutions
in interface LifecycleExecutor
- Throws:
LifecycleExecutionException
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.