Maven - Lifecycle

Card Puncher Data Processing

About

A Build Lifecycle is Made Up of Phases.

To call all phase, you only need to call the last build phase to be executed, deploy:

mvn deploy

If you call a build phase, it will execute not only that build phase, but also every build phase prior to the called build phase.

Default

  • clean: to remove the target directory
  • compile: to compile your application sources
  • test: to execute the tests. The surefire plugin executes the test.
  • package: to archive your application
  • integration-test - process and deploy the package if necessary into an environment where integration tests can be run
  • verify - run any checks to verify the package is valid and meets quality criteria
  • install: to install the generated artifact (JAR file by default) in the local repository.
  • site: to generate the project documentation in target/site
  • deploy: copies the final package to the remote repository for sharing with other developers and projects.

Others

  • test-compile: to compile the tests but doesn't execute them
  • idea:idea: to generate an IntelliJ IDEA descriptor for the project
  • eclipse:eclipse: to generate a project file.

Documentation / Reference





Discover More
Card Puncher Data Processing
Maven - (Deploy|Distribution) Phase

This deploy phase copies: a (final) package a web site or the Javadoc documentation to a remote repository for sharing with other developers and projects. In most project builds, the deploy phase...
Card Puncher Data Processing
Maven - (Remote Repository|Server)

Remote repository in maven A remote repository (or server) can be defined as: a source to resolve dependency (via HTTP) or as a target to deploy the artifact (via SCP) The definition dependent on...
Card Puncher Data Processing
Maven - Mvn

-t,--toolchains -U,--update-snapshots Forces a check for updated releases and snapshots on remote repositories -up,--update-plugins Ineffective, only kept for backward compatibility -V,--show-version...
Card Puncher Data Processing
Maven - Phase (Build lifecycle)

A phase is a step in the build lifecycle, which is an ordered sequence of phases. When a phase is given, Maven will execute every phase in the sequence up to and including the one defined. Phases are...
Card Puncher Data Processing
Maven - Test

Test is a phase that: execute the tests. test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed The Maven lifecycle...



Share this page:
Follow us:
Task Runner