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.2.3.jar
.
Here is the definition of the default
lifecycle without the 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> ...
Get Mastering Apache Maven 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.