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. - 
Method Summary
Modifier 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
- 
getId
The ID of this phase, e.g.,generate-sources.- Returns:
 - a 
String 
 - 
getExecutions
The goals to execute within the phase.- Returns:
 - a 
List<Execution> 
 - 
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
Creates a newPhaseinstance using the specified id.- Parameters:
 id- the newStringto use- Returns:
 - a 
Phasewith the specified id 
 - 
withExecutions
Creates a newPhaseinstance using the specified executions.- Parameters:
 executions- the newCollection<Execution>to use- Returns:
 - a 
Phasewith the specified executions 
 - 
withConfiguration
Creates a newPhaseinstance using the specified configuration.- Parameters:
 configuration- the newXmlNodeto use- Returns:
 - a 
Phasewith the specified configuration 
 - 
newInstance
Creates a newPhaseinstance. Equivalent tonewInstance(true).- Returns:
 - a new 
Phase - See Also:
 
 - 
newInstance
Creates 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 
 - 
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 
 
 -