List out what are the build phases in Maven

Following are the phases of Maven build lifecycle
validate: validate the project and check if everything is correct and all necessary information is available.
compile: this phase compiles the source code of your project.
test: tests the compiled source code by using a suitable unit testing framework. These tests should not require the code to be packaged or deployed
package: takes the compiled code and packages it in its distributable format
integration-test: processes and deploys the package if possible into an environment where integration tests can be run.
verify: runs any checks to verify the package is valid and meets the required quality criteria.
install: installation of the package into the local repository. This is done to use it as a dependency in other projects locally.
deploy: done in an integration environment or release environment. Here the final package is copied to the remote repository for sharing with other developers and projects.

Author: Mahesh

Technical Lead with 10 plus years of experience in developing web applications using Java/J2EE and web technologies. Strong in design and integration problem solving skills. Ability to learn, unlearn and relearn with strong written and verbal communications.