Class LifecycleConfiguration
java.lang.Object
org.apache.maven.plugin.lifecycle.LifecycleConfiguration
- All Implemented Interfaces:
Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class LifecycleConfiguration
extends Object
implements Serializable
Root element of the
lifecycle.xml
file.- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create LifecycleConfiguration instances. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newLifecycleConfiguration
builder instance.newBuilder
(boolean withDefaults) Creates a newLifecycleConfiguration
builder instance using default values or not.Creates a newLifecycleConfiguration
builder instance using the specified object as a basis.newBuilder
(LifecycleConfiguration from, boolean forceCopy) Creates a newLifecycleConfiguration
builder instance using the specified object as a basis.static LifecycleConfiguration
Creates a newLifecycleConfiguration
instance.static LifecycleConfiguration
newInstance
(boolean withDefaults) Creates a newLifecycleConfiguration
instance using default values or not.with()
Creates a new builder with this object as the basis.withLifecycles
(Collection<Lifecycle> lifecycles) Creates a newLifecycleConfiguration
instance using the specified lifecycles.
-
Method Details
-
getNamespaceUri
-
getModelEncoding
-
getLifecycles
- Returns:
- a
List<Lifecycle>
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withLifecycles
Creates a newLifecycleConfiguration
instance using the specified lifecycles.- Parameters:
lifecycles
- the newCollection<Lifecycle>
to use- Returns:
- a
LifecycleConfiguration
with the specified lifecycles
-
newInstance
Creates a newLifecycleConfiguration
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
LifecycleConfiguration
- See Also:
-
newInstance
Creates a newLifecycleConfiguration
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
LifecycleConfiguration
-
newBuilder
Creates a newLifecycleConfiguration
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newLifecycleConfiguration
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 newLifecycleConfiguration
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theLifecycleConfiguration
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
@Nonnull public static LifecycleConfiguration.Builder newBuilder(LifecycleConfiguration from, boolean forceCopy) Creates a newLifecycleConfiguration
builder instance using the specified object as a basis.- Parameters:
from
- theLifecycleConfiguration
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-