O'Reilly logo

Apache Maven 3 Cookbook by Srirangan

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

Understanding the build lifecycle

The build lifecycle explicitly defines the process of building, testing, distributing an artifact, and is at the heart of every Maven project.

There are three inbuilt build lifecycles: default, clean, and site.

Default lifecycle

The default lifecycle handles the project compilation, test, and deployment. While it contains over 20 build phases, the following are the most important phases:

  • Validate: validates that all project information is available and is correct
  • Compile: compiles the source code
  • Test: runs unit tests within a suitable framework
  • Package: packages the compiled code in its distribution format
  • Integration-test: processes the package in the integration-test environment
  • Verify: runs checks to verify that the ...

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