org.apache.maven.lifecycle.internal
Class DefaultLifecycleExecutionPlanCalculator

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

@Component(role=LifecycleExecutionPlanCalculator.class)
public class DefaultLifecycleExecutionPlanCalculator
extends Object
implements LifecycleExecutionPlanCalculator

Since:
3.0
Author:
Benjamin Bentmann, Kristian Rosenvold (Extract class)

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


Constructor Summary
DefaultLifecycleExecutionPlanCalculator()
           
DefaultLifecycleExecutionPlanCalculator(BuildPluginManager pluginManager, DefaultLifecycles defaultLifeCycles, MojoDescriptorCreator mojoDescriptorCreator, LifecyclePluginResolver lifecyclePluginResolver, DefaultSchedules defaultSchedules)
           
 
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)
           
 List<MojoExecution> calculateMojoExecutions(MavenSession session, MavenProject project, List<Object> tasks)
           
 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
 

Constructor Detail

DefaultLifecycleExecutionPlanCalculator

public DefaultLifecycleExecutionPlanCalculator()

DefaultLifecycleExecutionPlanCalculator

public DefaultLifecycleExecutionPlanCalculator(BuildPluginManager pluginManager,
                                               DefaultLifecycles defaultLifeCycles,
                                               MojoDescriptorCreator mojoDescriptorCreator,
                                               LifecyclePluginResolver lifecyclePluginResolver,
                                               DefaultSchedules defaultSchedules)
Method Detail

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

calculateMojoExecutions

public List<MojoExecution> calculateMojoExecutions(MavenSession session,
                                                   MavenProject project,
                                                   List<Object> tasks)
                                            throws PluginNotFoundException,
                                                   PluginResolutionException,
                                                   PluginDescriptorParsingException,
                                                   MojoNotFoundException,
                                                   NoPluginFoundForPrefixException,
                                                   InvalidPluginDescriptorException,
                                                   PluginVersionResolutionException,
                                                   LifecyclePhaseNotFoundException
Throws:
PluginNotFoundException
PluginResolutionException
PluginDescriptorParsingException
MojoNotFoundException
NoPluginFoundForPrefixException
InvalidPluginDescriptorException
PluginVersionResolutionException
LifecyclePhaseNotFoundException

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


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