Java Academy Logo

Maven Build Life Cycle

In Maven Build life cycle there are different phases these phases are used for different purposes like test phase for complies tests, verify phases is used for tests and main source code and other.

Maven Build Life Cycle Phases

• Validate:

This phase is responsible for validates if the project structure is correct or not.

• Compile:

It compiles the source code, converts the .java files to .class, and stores these classes in the target/classes folder.

• Test:

It runs unit tests for the maven project.

• Package:

This phase is responsible for distribute complied code in the format of WAR, JAR and others.

• Integration test:

It runs the integration tests for the maven project.

• Verify:

Verify that the project is valid and meets the quality standards.

• Install:

This phase is responsible for install packaged code on the system.

• Deploy:

Copies the packaged code to the remote repository for deployment then other developers can easily access this one.