Class Phase
java.lang.Object
org.apache.maven.plugin.lifecycle.Phase
- All Implemented Interfaces:
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.Dom
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 new Phase builder instance.static Phase.Builder
newBuilder
(boolean withDefaults) Creates a new Phase builder instance using default values or not.static Phase.Builder
newBuilder
(Phase from) Creates a new Phase builder instance using the specified object as a basis.static Phase.Builder
newBuilder
(Phase from, boolean forceCopy) Creates a new Phase builder instance using the specified object as a basis.static Phase
Creates a new Phase instance.static Phase
newInstance
(boolean withDefaults) Creates a new Phase instance using default values or not.with()
Creates a new builder with this object as the basis.withConfiguration
(org.apache.maven.api.xml.Dom configuration) Creates a new Phase instance using the specified configuration.withExecutions
(Collection<Execution> executions) Creates a new Phase instance using the specified executions.Creates a new Phase instance using the specified id.
-
Method Details
-
getId
The ID of this phase, e.g.,generate-sources
. -
getExecutions
The goals to execute within the phase. -
getConfiguration
public org.apache.maven.api.xml.Dom getConfiguration()Configuration to pass to all goals run in this phase. -
with
Creates a new builder with this object as the basis. -
withId
Creates a new Phase instance using the specified id. -
withExecutions
Creates a new Phase instance using the specified executions. -
withConfiguration
Creates a new Phase instance using the specified configuration. -
newInstance
Creates a new Phase instance. Equivalent tonewInstance( true )
.- See Also:
-
newInstance
Creates a new Phase instance using default values or not. Equivalent tonewBuilder( withDefaults ).build()
. -
newBuilder
Creates a new Phase builder instance. Equivalent tonewBuilder( true )
.- See Also:
-
newBuilder
Creates a new Phase builder instance using default values or not. -
newBuilder
Creates a new Phase builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
. -
newBuilder
Creates a new Phase builder instance using the specified object as a basis.
-