The build phases in Maven Build Lifecycle are listed down:
Validate: Checks if all the preconditions information to trigger the build is obtained.
Compile: Project source code is compiled.
Test: The Source code that is compiled is tested with the unit test framework. In this phase, the code is not deployed or packaged.
Package: Source code after compilation is packaged in the form of ZIP or JAR files.
Integration- test: After the package is deployed in an environment, the integration test cases are executed.
Verify: Examines to ensure that the package is correct and it meets all the required quality specifications.
Install: Installation of packages into the local repository.
Deploy: A specimen of the final package is made accessible to the remote repository for distribution among the other developers across projects.