Class Phase
java.lang.Object
org.apache.maven.api.plugin.descriptor.lifecycle.Phase
- All Implemented Interfaces:
Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Phase
extends Object
implements Serializable
A phase mapping definition.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Phase instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPhase(Phase.Builder builder) Constructor for this class, to be called from its subclasses andPhase.Builder. -
Method Summary
Modifier and TypeMethodDescriptionConfiguration to pass to all goals run in this phase.Get the effective ID of this phase, e.g.,generate-sourcesorafter:integration-test[1000].If specified, identifies this phase as a dynamic phase to decorate the specified phase id, e.g.The goals to execute within the phase.getId()The ID of this phase, e.g.,generate-sources.intIf specified, identifies a within phase prioritization of executions.static Phase.BuilderCreates a newPhasebuilder instance.static Phase.BuildernewBuilder(boolean withDefaults) Creates a newPhasebuilder instance using default values or not.static Phase.BuildernewBuilder(Phase from) Creates a newPhasebuilder instance using the specified object as a basis.static Phase.BuildernewBuilder(Phase from, boolean forceCopy) Creates a newPhasebuilder instance using the specified object as a basis.static PhaseCreates a newPhaseinstance.static PhasenewInstance(boolean withDefaults) Creates a newPhaseinstance using default values or not.with()Creates a new builder with this object as the basis.withConfiguration(XmlNode configuration) Creates a newPhaseinstance using the specified configuration.withExecutionPoint(String executionPoint) Creates a newPhaseinstance using the specified executionPoint.withExecutions(Collection<Execution> executions) Creates a newPhaseinstance using the specified executions.Creates a newPhaseinstance using the specified id.withPriority(int priority) Creates a newPhaseinstance using the specified priority.
-
Constructor Details
-
Phase
Constructor for this class, to be called from its subclasses andPhase.Builder.- See Also:
-
-
Method Details
-
getId
-
getExecutionPoint
If specified, identifies this phase as a dynamic phase to decorate the specified phase id, e.g.afterorbefore.- Returns:
- a
String
-
getPriority
public int getPriority()If specified, identifies a within phase prioritization of executions.- Returns:
- a
int
-
getExecutions
-
getConfiguration
Configuration to pass to all goals run in this phase.- Returns:
- a
XmlNode
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withId
-
withExecutionPoint
-
withPriority
-
withExecutions
Creates a newPhaseinstance using the specified executions.- Parameters:
executions- the newCollection<Execution>to use- Returns:
- a
Phasewith the specified executions
-
withConfiguration
-
newInstance
-
newInstance
-
newBuilder
Creates a newPhasebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newPhasebuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPhasebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- thePhaseinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newPhasebuilder instance using the specified object as a basis.- Parameters:
from- thePhaseinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
getEffectiveId
Get the effective ID of this phase, e.g.,generate-sourcesorafter:integration-test[1000].- Returns:
- String
-