Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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>
      <phase>generate-sources</phase>
      <phase>process-sources</phase>
      <phase&gt...