Package org.apache.maven.api
Interface Lifecycle
- All Superinterfaces:
- ExtensibleEnum
A Maven lifecycle is a sequence of predefined phases that govern the build process
 of a Maven project. Each phase represents a specific step, such as compiling the
 code, running tests, packaging the project, and deploying it. Executing a phase
 triggers all preceding phases, ensuring that each step of the build process is
 completed in the correct order. The three main lifecycles in Maven are
 
default, clean, and site, with the
 default lifecycle being the most commonly used for project builds.- Since:
- 4.0.0
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA phase alias, mostly used to support the Maven 3 phases which are mapped to dynamic phases in Maven 4.static interfacestatic interfacestatic interfaceA link from a phase to another phase, consisting of a type which can beLifecycle.Link.Kind.BEFOREorLifecycle.Link.Kind.AFTER, and aLifecycle.Pointerto another phase.static interfaceA phase in the lifecycle.static interfacestatic interface
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionaliases()Collection of aliases.default Stream<Lifecycle.Phase> Stream of phases containing all child phases recursively.id()Name or identifier of this lifecycle.Pre-ordered list of phases.phases()Collection of phases for this lifecycle
- 
Field Details- 
CLEAN- See Also:
 
- 
DEFAULT- See Also:
 
- 
SITE- See Also:
 
- 
WRAPPER- See Also:
 
- 
BEFORE- See Also:
 
- 
AFTER- See Also:
 
- 
AT- See Also:
 
 
- 
- 
Method Details- 
idString id()Name or identifier of this lifecycle.- Specified by:
- idin interface- ExtensibleEnum
- Returns:
- the unique identifier for this lifecycle
 
- 
phasesCollection<Lifecycle.Phase> phases()Collection of phases for this lifecycle
- 
allPhasesStream of phases containing all child phases recursively.
- 
aliasesCollection<Lifecycle.Alias> aliases()Collection of aliases.
- 
orderedPhasesPre-ordered list of phases. If not provided, a default order will be computed.
 
-