org.apache.maven.lifecycle
Interface LifecycleExecutor

All Known Implementing Classes:
DefaultLifecycleExecutor

public interface LifecycleExecutor

A facade that provides lifecycle services to components outside Maven core.

Author:
Jason van Zyl

Field Summary
static String ROLE
          Deprecated. 
 
Method Summary
 MavenExecutionPlan calculateExecutionPlan(MavenSession session, boolean setup, String... tasks)
           
 MavenExecutionPlan calculateExecutionPlan(MavenSession session, String... tasks)
           
 void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session)
           
 void execute(MavenSession session)
           
 List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution, MavenSession session)
           
 Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(String packaging)
           
 

Field Detail

ROLE

@Deprecated
static final String ROLE
Deprecated. 
Method Detail

getPluginsBoundByDefaultToAllLifecycles

Set<Plugin> getPluginsBoundByDefaultToAllLifecycles(String packaging)
Returns:
The plugins bound to the lifecycles of the specified packaging or null if the packaging is unknown.

calculateExecutionPlan

MavenExecutionPlan calculateExecutionPlan(MavenSession session,
                                          String... tasks)
                                          throws PluginNotFoundException,
                                                 PluginResolutionException,
                                                 PluginDescriptorParsingException,
                                                 MojoNotFoundException,
                                                 NoPluginFoundForPrefixException,
                                                 InvalidPluginDescriptorException,
                                                 PluginManagerException,
                                                 LifecyclePhaseNotFoundException,
                                                 LifecycleNotFoundException,
                                                 PluginVersionResolutionException
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException

calculateExecutionPlan

MavenExecutionPlan calculateExecutionPlan(MavenSession session,
                                          boolean setup,
                                          String... tasks)
                                          throws PluginNotFoundException,
                                                 PluginResolutionException,
                                                 PluginDescriptorParsingException,
                                                 MojoNotFoundException,
                                                 NoPluginFoundForPrefixException,
                                                 InvalidPluginDescriptorException,
                                                 PluginManagerException,
                                                 LifecyclePhaseNotFoundException,
                                                 LifecycleNotFoundException,
                                                 PluginVersionResolutionException
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginManagerException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException

execute

void execute(MavenSession session)

calculateForkedExecutions

void calculateForkedExecutions(MojoExecution mojoExecution,
                               MavenSession session)
                               throws MojoNotFoundException,
                                      PluginNotFoundException,
                                      PluginResolutionException,
                                      PluginDescriptorParsingException,
                                      NoPluginFoundForPrefixException,
                                      InvalidPluginDescriptorException,
                                      LifecyclePhaseNotFoundException,
                                      LifecycleNotFoundException,
                                      PluginVersionResolutionException
Throws:
MojoNotFoundException
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException

executeForkedExecutions

List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution,
                                           MavenSession session)
                                           throws LifecycleExecutionException
Throws:
LifecycleExecutionException


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