Class Phase
java.lang.Object
org.apache.maven.plugin.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
Modifier and TypeClassDescriptionstatic class
Builder class used to create Phase instances. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.api.xml.XmlNode
Configuration 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.Builder
Creates a newPhase
builder instance.static Phase.Builder
newBuilder
(boolean withDefaults) Creates a newPhase
builder instance using default values or not.static Phase.Builder
newBuilder
(Phase from) Creates a newPhase
builder instance using the specified object as a basis.static Phase.Builder
newBuilder
(Phase from, boolean forceCopy) Creates a newPhase
builder instance using the specified object as a basis.static Phase
Creates a newPhase
instance.static Phase
newInstance
(boolean withDefaults) Creates a newPhase
instance using default values or not.with()
Creates a new builder with this object as the basis.withConfiguration
(org.apache.maven.api.xml.XmlNode configuration) Creates a newPhase
instance using the specified configuration.withExecutions
(Collection<Execution> executions) Creates a newPhase
instance using the specified executions.Creates a newPhase
instance 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
public org.apache.maven.api.xml.XmlNode 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 newPhase
instance using the specified id.- Parameters:
id
- the newString
to use- Returns:
- a
Phase
with the specified id
-
withExecutions
Creates a newPhase
instance using the specified executions.- Parameters:
executions
- the newCollection<Execution>
to use- Returns:
- a
Phase
with the specified executions
-
withConfiguration
Creates a newPhase
instance using the specified configuration.- Parameters:
configuration
- the newXmlNode
to use- Returns:
- a
Phase
with the specified configuration
-
newInstance
Creates a newPhase
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Phase
- See Also:
-
newInstance
Creates a newPhase
instance 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 newPhase
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newPhase
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newPhase
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- thePhase
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newPhase
builder instance using the specified object as a basis.- Parameters:
from
- thePhase
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-