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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Phase instances.
- 
Method SummaryModifier and TypeMethodDescriptionConfiguration to pass to all goals run in this phase.The goals to execute within the phase.getId()The ID of this phase, e.g.,generate-sources.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.withExecutions(Collection<Execution> executions) Creates a newPhaseinstance using the specified executions.Creates a newPhaseinstance using the specified id.
- 
Method Details- 
getIdThe ID of this phase, e.g.,generate-sources.- Returns:
- a String
 
- 
getExecutionsThe goals to execute within the phase.- Returns:
- a List<Execution>
 
- 
getConfigurationConfiguration to pass to all goals run in this phase.- Returns:
- a XmlNode
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withIdCreates a newPhaseinstance using the specified id.- Parameters:
- id- the new- Stringto use
- Returns:
- a Phasewith the specified id
 
- 
withExecutionsCreates a newPhaseinstance using the specified executions.- Parameters:
- executions- the new- Collection<Execution>to use
- Returns:
- a Phasewith the specified executions
 
- 
withConfigurationCreates a newPhaseinstance using the specified configuration.- Parameters:
- configuration- the new- XmlNodeto use
- Returns:
- a Phasewith the specified configuration
 
- 
newInstanceCreates a newPhaseinstance. Equivalent tonewInstance(true).- Returns:
- a new Phase
- See Also:
 
- 
newInstanceCreates a newPhaseinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Phase
 
- 
newBuilderCreates a newPhasebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newPhasebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPhasebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Phaseinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newPhasebuilder instance using the specified object as a basis.- Parameters:
- from- the- Phaseinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-