Class Lifecycle
java.lang.Object
org.apache.maven.plugin.lifecycle.Lifecycle
- All Implemented Interfaces:
Serializable
A custom lifecycle mapping definition.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Lifecycle instances. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
The ID of this lifecycle, for identification in the mojo descriptor.The phase mappings for this lifecycle.static Lifecycle.Builder
Creates a new Lifecycle builder instance.static Lifecycle.Builder
newBuilder
(boolean withDefaults) Creates a new Lifecycle builder instance using default values or not.static Lifecycle.Builder
newBuilder
(Lifecycle from) Creates a new Lifecycle builder instance using the specified object as a basis.static Lifecycle.Builder
newBuilder
(Lifecycle from, boolean forceCopy) Creates a new Lifecycle builder instance using the specified object as a basis.static Lifecycle
Creates a new Lifecycle instance.static Lifecycle
newInstance
(boolean withDefaults) Creates a new Lifecycle instance using default values or not.with()
Creates a new builder with this object as the basis.Creates a new Lifecycle instance using the specified id.withPhases
(Collection<Phase> phases) Creates a new Lifecycle instance using the specified phases.
-
Method Details
-
getId
The ID of this lifecycle, for identification in the mojo descriptor. -
getPhases
The phase mappings for this lifecycle. -
with
Creates a new builder with this object as the basis. -
withId
Creates a new Lifecycle instance using the specified id. -
withPhases
Creates a new Lifecycle instance using the specified phases. -
newInstance
Creates a new Lifecycle instance. Equivalent tonewInstance( true )
.- See Also:
-
newInstance
Creates a new Lifecycle instance using default values or not. Equivalent tonewBuilder( withDefaults ).build()
. -
newBuilder
Creates a new Lifecycle builder instance. Equivalent tonewBuilder( true )
.- See Also:
-
newBuilder
Creates a new Lifecycle builder instance using default values or not. -
newBuilder
Creates a new Lifecycle builder instance using the specified object as a basis. Equivalent tonewBuilder( from, false )
. -
newBuilder
Creates a new Lifecycle builder instance using the specified object as a basis.
-