Package org.apache.maven.lifecycle
Class MavenExecutionPlan
- java.lang.Object
-
- org.apache.maven.lifecycle.MavenExecutionPlan
-
- All Implemented Interfaces:
Iterable<ExecutionPlanItem>
public class MavenExecutionPlan extends Object implements Iterable<ExecutionPlanItem>
MavenExecutionPlan
-
-
Constructor Summary
Constructors Constructor Description MavenExecutionPlan(List<ExecutionPlanItem> planItem, DefaultLifecycles defaultLifecycles)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionPlanItem
findLastInPhase(String requestedPhase)
Returns the last ExecutionPlanItem in the supplied phase.List<MojoExecution>
getExecutions()
Deprecated.List<MojoExecution>
getMojoExecutions()
Set<MojoDescriptor>
getNonThreadSafeMojos()
Get set of mojos used but not marked @threadSafeSet<Plugin>
getNonThreadSafePlugins()
Get set of plugins having a goal/mojo used but not marked @threadSafeIterator<ExecutionPlanItem>
iterator()
int
size()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
MavenExecutionPlan
public MavenExecutionPlan(List<ExecutionPlanItem> planItem, DefaultLifecycles defaultLifecycles)
-
-
Method Detail
-
iterator
public Iterator<ExecutionPlanItem> iterator()
- Specified by:
iterator
in interfaceIterable<ExecutionPlanItem>
-
findLastInPhase
public ExecutionPlanItem findLastInPhase(String requestedPhase)
Returns the last ExecutionPlanItem in the supplied phase. If no items are in the specified phase, the closest executionPlanItem from an earlier phase item will be returned.- Parameters:
requestedPhase
- the requested phase The execution plan item- Returns:
- The ExecutionPlanItem or null if none can be found
-
getMojoExecutions
public List<MojoExecution> getMojoExecutions()
-
getNonThreadSafePlugins
public Set<Plugin> getNonThreadSafePlugins()
Get set of plugins having a goal/mojo used but not marked @threadSafe- Returns:
- the set of plugins (without info on which goal is concerned)
-
getNonThreadSafeMojos
public Set<MojoDescriptor> getNonThreadSafeMojos()
Get set of mojos used but not marked @threadSafe- Returns:
- the set of mojo descriptors
-
getExecutions
@Deprecated public List<MojoExecution> getExecutions()
Deprecated.
-
size
public int size()
-
-