org.apache.maven.lifecycle.internal.stub
Class LifecycleExecutionPlanCalculatorStub

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.stub.LifecycleExecutionPlanCalculatorStub
All Implemented Interfaces:
LifecycleExecutionPlanCalculator

public class LifecycleExecutionPlanCalculatorStub
extends Object
implements LifecycleExecutionPlanCalculator

Author:
Kristian Rosenvold

Field Summary
static MojoDescriptor CLEAN
           
static MojoDescriptor COMPILE
           
static MojoDescriptor INITIALIZE
           
static MojoDescriptor INSTALL
           
static MojoDescriptor PACKAGE
           
static MojoDescriptor POST_CLEAN
           
static MojoDescriptor POST_SITE
           
static MojoDescriptor PRE_CLEAN
           
static MojoDescriptor PRE_SITE
           
static MojoDescriptor PROCESS_RESOURCES
           
static MojoDescriptor PROCESS_TEST_RESOURCES
           
static MojoDescriptor SITE
           
static MojoDescriptor SITE_DEPLOY
           
static MojoDescriptor TEST
           
static MojoDescriptor TEST_COMPILE
           
static MojoDescriptor VALIDATE
           
 
Constructor Summary
LifecycleExecutionPlanCalculatorStub()
           
 
Method Summary
 MavenExecutionPlan calculateExecutionPlan(MavenSession session, MavenProject project, List<Object> tasks)
           
 MavenExecutionPlan calculateExecutionPlan(MavenSession session, MavenProject project, List<Object> tasks, boolean setup)
           
 void calculateForkedExecutions(MojoExecution mojoExecution, MavenSession session)
           
static MojoDescriptor createMojoDescriptor(String phaseName)
           
static MojoDescriptor createMojoDescriptor(String phaseName, boolean threadSafe)
           
 int getNumberOfExceutions(ProjectBuildList projectBuildList)
           
static MavenExecutionPlan getProjectAExceutionPlan()
           
static MavenExecutionPlan getProjectBExecutionPlan()
           
static Set<String> getScopes()
           
 void setupMojoExecution(MavenSession session, MavenProject project, MojoExecution mojoExecution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRE_CLEAN

public static final MojoDescriptor PRE_CLEAN

CLEAN

public static final MojoDescriptor CLEAN

POST_CLEAN

public static final MojoDescriptor POST_CLEAN

VALIDATE

public static final MojoDescriptor VALIDATE

INITIALIZE

public static final MojoDescriptor INITIALIZE

TEST_COMPILE

public static final MojoDescriptor TEST_COMPILE

PROCESS_TEST_RESOURCES

public static final MojoDescriptor PROCESS_TEST_RESOURCES

PROCESS_RESOURCES

public static final MojoDescriptor PROCESS_RESOURCES

COMPILE

public static final MojoDescriptor COMPILE

TEST

public static final MojoDescriptor TEST

PACKAGE

public static final MojoDescriptor PACKAGE

INSTALL

public static final MojoDescriptor INSTALL

PRE_SITE

public static final MojoDescriptor PRE_SITE

SITE

public static final MojoDescriptor SITE

POST_SITE

public static final MojoDescriptor POST_SITE

SITE_DEPLOY

public static final MojoDescriptor SITE_DEPLOY
Constructor Detail

LifecycleExecutionPlanCalculatorStub

public LifecycleExecutionPlanCalculatorStub()
Method Detail

getNumberOfExceutions

public int getNumberOfExceutions(ProjectBuildList projectBuildList)
                          throws InvalidPluginDescriptorException,
                                 PluginVersionResolutionException,
                                 PluginDescriptorParsingException,
                                 NoPluginFoundForPrefixException,
                                 MojoNotFoundException,
                                 PluginNotFoundException,
                                 PluginResolutionException,
                                 LifecyclePhaseNotFoundException,
                                 LifecycleNotFoundException
Throws:
InvalidPluginDescriptorException
PluginVersionResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
MojoNotFoundException
PluginNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
LifecycleNotFoundException

calculateForkedExecutions

public void calculateForkedExecutions(MojoExecution mojoExecution,
                                      MavenSession session)
                               throws MojoNotFoundException,
                                      PluginNotFoundException,
                                      PluginResolutionException,
                                      PluginDescriptorParsingException,
                                      NoPluginFoundForPrefixException,
                                      InvalidPluginDescriptorException,
                                      LifecyclePhaseNotFoundException,
                                      LifecycleNotFoundException,
                                      PluginVersionResolutionException
Specified by:
calculateForkedExecutions in interface LifecycleExecutionPlanCalculator
Throws:
MojoNotFoundException
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException

calculateExecutionPlan

public MavenExecutionPlan calculateExecutionPlan(MavenSession session,
                                                 MavenProject project,
                                                 List<Object> tasks,
                                                 boolean setup)
                                          throws PluginNotFoundException,
                                                 PluginResolutionException,
                                                 LifecyclePhaseNotFoundException,
                                                 PluginDescriptorParsingException,
                                                 MojoNotFoundException,
                                                 InvalidPluginDescriptorException,
                                                 NoPluginFoundForPrefixException,
                                                 LifecycleNotFoundException,
                                                 PluginVersionResolutionException
Specified by:
calculateExecutionPlan in interface LifecycleExecutionPlanCalculator
Throws:
PluginNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
PluginDescriptorParsingException
MojoNotFoundException
InvalidPluginDescriptorException
NoPluginFoundForPrefixException
LifecycleNotFoundException
PluginVersionResolutionException

calculateExecutionPlan

public MavenExecutionPlan calculateExecutionPlan(MavenSession session,
                                                 MavenProject project,
                                                 List<Object> tasks)
                                          throws PluginNotFoundException,
                                                 PluginResolutionException,
                                                 LifecyclePhaseNotFoundException,
                                                 PluginDescriptorParsingException,
                                                 MojoNotFoundException,
                                                 InvalidPluginDescriptorException,
                                                 NoPluginFoundForPrefixException,
                                                 LifecycleNotFoundException,
                                                 PluginVersionResolutionException
Specified by:
calculateExecutionPlan in interface LifecycleExecutionPlanCalculator
Throws:
PluginNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
PluginDescriptorParsingException
MojoNotFoundException
InvalidPluginDescriptorException
NoPluginFoundForPrefixException
LifecycleNotFoundException
PluginVersionResolutionException

setupMojoExecution

public void setupMojoExecution(MavenSession session,
                               MavenProject project,
                               MojoExecution mojoExecution)
                        throws PluginNotFoundException,
                               PluginResolutionException,
                               PluginDescriptorParsingException,
                               MojoNotFoundException,
                               InvalidPluginDescriptorException,
                               NoPluginFoundForPrefixException,
                               LifecyclePhaseNotFoundException,
                               LifecycleNotFoundException,
                               PluginVersionResolutionException
Specified by:
setupMojoExecution in interface LifecycleExecutionPlanCalculator
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
InvalidPluginDescriptorException
NoPluginFoundForPrefixException
LifecyclePhaseNotFoundException
LifecycleNotFoundException
PluginVersionResolutionException

getProjectAExceutionPlan

public static MavenExecutionPlan getProjectAExceutionPlan()
                                                   throws PluginNotFoundException,
                                                          PluginResolutionException,
                                                          LifecyclePhaseNotFoundException,
                                                          PluginDescriptorParsingException,
                                                          MojoNotFoundException,
                                                          InvalidPluginDescriptorException,
                                                          NoPluginFoundForPrefixException,
                                                          LifecycleNotFoundException,
                                                          PluginVersionResolutionException
Throws:
PluginNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
PluginDescriptorParsingException
MojoNotFoundException
InvalidPluginDescriptorException
NoPluginFoundForPrefixException
LifecycleNotFoundException
PluginVersionResolutionException

getProjectBExecutionPlan

public static MavenExecutionPlan getProjectBExecutionPlan()
                                                   throws PluginNotFoundException,
                                                          PluginResolutionException,
                                                          LifecyclePhaseNotFoundException,
                                                          PluginDescriptorParsingException,
                                                          MojoNotFoundException,
                                                          InvalidPluginDescriptorException,
                                                          NoPluginFoundForPrefixException,
                                                          LifecycleNotFoundException,
                                                          PluginVersionResolutionException
Throws:
PluginNotFoundException
PluginResolutionException
LifecyclePhaseNotFoundException
PluginDescriptorParsingException
MojoNotFoundException
InvalidPluginDescriptorException
NoPluginFoundForPrefixException
LifecycleNotFoundException
PluginVersionResolutionException

createMojoDescriptor

public static MojoDescriptor createMojoDescriptor(String phaseName)

createMojoDescriptor

public static MojoDescriptor createMojoDescriptor(String phaseName,
                                                  boolean threadSafe)

getScopes

public static Set<String> getScopes()


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.