org.apache.maven.lifecycle
Interface LifecycleExecutor

All Known Implementing Classes:
DefaultLifecycleExecutor

public interface LifecycleExecutor

Responsible for orchestrating the process of building the ordered list of steps required to achieve the specified set of tasks passed into Maven, then executing these mojos in order. This class also manages the various error messages that may occur during this process, and directing the behavior of the build according to what's specified in MavenExecutionRequest.getReactorFailureBehavior().

Version:
$Id: LifecycleExecutor.java 679263 2008-07-24 01:56:21Z brett $
Author:
Jason van Zyl, jdcasey

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 void execute(MavenSession session, ReactorManager rm, EventDispatcher dispatcher)
          Order and execute mojos associated with the current set of projects in the reactor.
 java.util.List getLifecycles()
           
 TaskValidationResult isTaskValid(java.lang.String task, MavenSession session, MavenProject rootProject)
          Provides a fail-fast way to check that all goals specified in MavenExecutionRequest.getGoals() or MavenSession.getGoals() is valid.
 

Field Detail

ROLE

static final java.lang.String ROLE
Method Detail

isTaskValid

TaskValidationResult isTaskValid(java.lang.String task,
                                 MavenSession session,
                                 MavenProject rootProject)
Provides a fail-fast way to check that all goals specified in MavenExecutionRequest.getGoals() or MavenSession.getGoals() is valid.


execute

void execute(MavenSession session,
             ReactorManager rm,
             EventDispatcher dispatcher)
             throws LifecycleExecutionException,
                    BuildFailureException
Order and execute mojos associated with the current set of projects in the reactor. Specific lifecycle phases and mojo invocations that determine what phases and mojos this method will attempt to execute are provided in MavenSession.getGoals(), which is populated from MavenExecutionRequest.getGoals().

Throws:
LifecycleExecutionException
BuildFailureException

getLifecycles

java.util.List getLifecycles()
Since:
2.0.10


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