org.apache.maven.project
Class EmptyLifecycleExecutor

java.lang.Object
  extended by org.apache.maven.project.EmptyLifecycleExecutor
All Implemented Interfaces:
LifecycleExecutor

public class EmptyLifecycleExecutor
extends Object
implements LifecycleExecutor

A stub implementation that assumes an empty lifecycle to bypass interaction with the plugin manager and to avoid plugin artifact resolution from repositories.

Author:
Benjamin Bentmann

Field Summary
 
Fields inherited from interface org.apache.maven.lifecycle.LifecycleExecutor
ROLE
 
Constructor Summary
EmptyLifecycleExecutor()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyLifecycleExecutor

public EmptyLifecycleExecutor()
Method Detail

calculateExecutionPlan

public MavenExecutionPlan calculateExecutionPlan(MavenSession session,
                                                 String... tasks)
Specified by:
calculateExecutionPlan in interface LifecycleExecutor

calculateExecutionPlan

public MavenExecutionPlan calculateExecutionPlan(MavenSession session,
                                                 boolean setup,
                                                 String... tasks)
Specified by:
calculateExecutionPlan in interface LifecycleExecutor

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

calculateForkedExecutions

public void calculateForkedExecutions(MojoExecution mojoExecution,
                                      MavenSession session)
Specified by:
calculateForkedExecutions in interface LifecycleExecutor

executeForkedExecutions

public List<MavenProject> executeForkedExecutions(MojoExecution mojoExecution,
                                                  MavenSession session)
Specified by:
executeForkedExecutions in interface LifecycleExecutor


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