Maven build lifecycle

Maven's fixed, ordered list of phases, validate, compile, test, package, verify, install and deploy, where asking for one runs all before it.

In more detail

Asking for package compiles, tests and then packages. Maven itself does little; plugins attach their goals to phases and do the work, which is why build output is full of plugin names. Skipping tests is a flag on the same command, not a different command.

Examples

./mvnw test
./mvnw package -DskipTests

Related terms

Taught in

References