O'Reilly logo

Maven Essentials by Prabath Siriwardena

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required