> For the complete documentation index, see [llms.txt](https://bernardo.gitbook.io/development-docs-java/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bernardo.gitbook.io/development-docs-java/maven/maven-lifecycle.md).

# Maven Lifecycle

To understand Maven one first needs to understand the [Maven lifecycle](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html)

## Calling Goals and Phases

Not all phases are meant to be called by the user, as some are hooks for the plugins.

The main phases, which can be used, are:

* validate
* compile
* test
* package
* verify
* install
* deploy

Prefixed phases, starting with pre-, post- and process- should be avoided. These are not meant to be called by users and may cause problems.

## More Information

* [Introduction to the Build Lifecycle](https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html)
