Lifecycle bindings
Under the discussion of the default
lifecycle, we briefly touched upon the concept of lifecycle bindings. The default
lifecycle is defined without any associated lifecycle bindings, while both the clean
and site
lifecycles are defined with bindings. The standard Maven lifecycles and their associated bindings are defined under the file META-INF/plex/components.xml
of MAVEN_HOME/lib/maven-core-3.3.3.jar
.
Here is the configuration for the default
lifecycle without any associated plugin bindings:
<component>
<role>org.apache.maven.lifecycle.Lifecycle</role>
<implementation>
org.apache.maven.lifecycle.Lifecycle
</implementation>
<role-hint>default</role-hint>
<configuration>
<id>default</id>
<phases>
<phase>validate</phase>
<phase>initialize</phase>
<phase>generate-sources</phase>
<...