@Generated @ThreadSafe @Immutable public class Phase extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Phase.Builder
Builder class used to create Phase instances.
|
Modifier and Type | Method and Description |
---|---|
org.apache.maven.api.xml.Dom |
getConfiguration()
Configuration to pass to all goals run in this phase.
|
List<Execution> |
getExecutions()
The goals to execute within the phase.
|
String |
getId()
The ID of this phase, e.g.,
generate-sources . |
static Phase.Builder |
newBuilder()
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 |
newInstance()
Creates a new Phase instance.
|
static Phase |
newInstance(boolean withDefaults)
Creates a new Phase instance using default values or not.
|
Phase.Builder |
with()
Creates a new builder with this object as the basis.
|
Phase |
withConfiguration(org.apache.maven.api.xml.Dom configuration)
Creates a new Phase instance using the specified configuration.
|
Phase |
withExecutions(Collection<Execution> executions)
Creates a new Phase instance using the specified executions.
|
Phase |
withId(String id)
Creates a new Phase instance using the specified id.
|
public String getId()
generate-sources
.@Nonnull public List<Execution> getExecutions()
public org.apache.maven.api.xml.Dom getConfiguration()
@Nonnull public Phase.Builder with()
@Nonnull public Phase withExecutions(Collection<Execution> executions)
@Nonnull public Phase withConfiguration(org.apache.maven.api.xml.Dom configuration)
@Nonnull public static Phase newInstance()
newInstance( true )
.newInstance(boolean)
@Nonnull public static Phase newInstance(boolean withDefaults)
newBuilder( withDefaults ).build()
.@Nonnull public static Phase.Builder newBuilder()
newBuilder( true )
.newBuilder(boolean)
@Nonnull public static Phase.Builder newBuilder(boolean withDefaults)
@Nonnull public static Phase.Builder newBuilder(Phase from)
newBuilder( from, false )
.@Nonnull public static Phase.Builder newBuilder(Phase from, boolean forceCopy)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.