Package org.apache.maven.lifecycle
Class MavenExecutionPlan
- java.lang.Object
-
- org.apache.maven.lifecycle.MavenExecutionPlan
-
- All Implemented Interfaces:
java.lang.Iterable<ExecutionPlanItem>
public class MavenExecutionPlan extends java.lang.Object implements java.lang.Iterable<ExecutionPlanItem>
MavenExecutionPlan
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,ExecutionPlanItem>
lastMojoExecutionForAllPhases
(package private) java.util.List<java.lang.String>
phasesInExecutionPlan
private java.util.List<ExecutionPlanItem>
planItem
-
Constructor Summary
Constructors Constructor Description MavenExecutionPlan(java.util.List<ExecutionPlanItem> planItem, DefaultLifecycles defaultLifecycles)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ExecutionPlanItem
findLastInPhase(java.lang.String requestedPhase)
Returns the last ExecutionPlanItem in the supplied phase.private static java.lang.Iterable<java.lang.String>
getDistinctPhasesInOrderOfExecutionPlanAppearance(java.util.List<ExecutionPlanItem> planItems)
private java.util.List<ExecutionPlanItem>
getExecutionPlanItems()
java.util.List<MojoExecution>
getExecutions()
Deprecated.java.util.List<MojoExecution>
getMojoExecutions()
java.util.Set<MojoDescriptor>
getNonThreadSafeMojos()
Get set of mojos used but not marked @threadSafejava.util.Set<Plugin>
getNonThreadSafePlugins()
Get set of plugins having a goal/mojo used but not marked @threadSafejava.util.Iterator<ExecutionPlanItem>
iterator()
int
size()
-
-
-
Field Detail
-
planItem
private final java.util.List<ExecutionPlanItem> planItem
-
lastMojoExecutionForAllPhases
private final java.util.Map<java.lang.String,ExecutionPlanItem> lastMojoExecutionForAllPhases
-
phasesInExecutionPlan
final java.util.List<java.lang.String> phasesInExecutionPlan
-
-
Constructor Detail
-
MavenExecutionPlan
public MavenExecutionPlan(java.util.List<ExecutionPlanItem> planItem, DefaultLifecycles defaultLifecycles)
-
-
Method Detail
-
iterator
public java.util.Iterator<ExecutionPlanItem> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ExecutionPlanItem>
-
findLastInPhase
public ExecutionPlanItem findLastInPhase(java.lang.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
-
getExecutionPlanItems
private java.util.List<ExecutionPlanItem> getExecutionPlanItems()
-
getDistinctPhasesInOrderOfExecutionPlanAppearance
private static java.lang.Iterable<java.lang.String> getDistinctPhasesInOrderOfExecutionPlanAppearance(java.util.List<ExecutionPlanItem> planItems)
-
getMojoExecutions
public java.util.List<MojoExecution> getMojoExecutions()
-
getNonThreadSafePlugins
public java.util.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 java.util.Set<MojoDescriptor> getNonThreadSafeMojos()
Get set of mojos used but not marked @threadSafe- Returns:
- the set of mojo descriptors
-
getExecutions
@Deprecated public java.util.List<MojoExecution> getExecutions()
Deprecated.
-
size
public int size()
-
-