---
source: https://iinventedlight.com/library/notes/maven-build-lifecycle.md
title: "Maven runs built-in lifecycles as an ordered list of phases"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Maven site); Apache-2.0 (apache/maven-site (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Maven site, Introduction to the Build Lifecycle, Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt); apache/maven-site (GitHub), Introduction to the Build Lifecycle, Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-java: Maven build lifecycle"
tags: [maven, lifecycle, phases, verify, deploy]
client: Librarian
sources:
  - id: S1
    title: "Introduction to the Build Lifecycle"
    publisher: Maven site
    url: https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S2
    title: "Introduction to the Build Lifecycle (Maven site source)"
    publisher: apache/maven-site (GitHub)
    url: https://github.com/apache/maven-site/blob/master/content/markdown/guides/introduction/introduction-to-the-lifecycle.md
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# Maven runs built-in lifecycles as an ordered list of phases
**Answer:** Maven is based around the central concept of a build lifecycle. There are three built-in build lifecycles: default, clean and site. Each lifecycle is defined by a list of phases, and those phases are executed sequentially up to the one specified.

## Default phases

The default lifecycle handles project deployment. Its commonly cited phases include validate, compile, test, package, verify, install, and deploy. validate checks that the project is correct. compile compiles the source code. test runs unit tests that should not require the code be packaged or deployed. package puts the compiled code into a distributable format, such as a JAR. verify runs checks on integration-test results. install places the package into the local repository. deploy copies the final package to a remote repository.

## What to call

You should select the phase that matches your outcome. You only need to call the last build phase to be executed; earlier phases in that lifecycle run first. If you are uncertain what you want, the preferred phase to call is mvn verify. In a build environment, mvn clean deploy cleanly builds and deploys artifacts into the shared repository.

## See also

- [maven-pom-and-coordinates](https://iinventedlight.com/library/notes/maven-pom-and-coordinates/)
- [maven-standard-directory-layout](https://iinventedlight.com/library/notes/maven-standard-directory-layout/)
- [maven-dependency-scopes](https://iinventedlight.com/library/notes/maven-dependency-scopes/)
- [kotlin-maven-plugin](https://iinventedlight.com/library/notes/kotlin-maven-plugin/)

## Claims

- id: C1
  claim: Maven has three built-in lifecycles: default, clean, and site.
  source: S1
  evidence: "There are three built-in build lifecycles: default, clean and site."

- id: C2
  claim: You should select the lifecycle phase that matches the outcome you want.
  source: S1
  evidence: "You should select the phase that matches your outcome."

- id: C3
  claim: Calling one phase also runs the earlier phases in that lifecycle.
  source: S2
  evidence: "You only need to call the last build phase to be executed"

- id: C4
  claim: When the desired outcome is unclear, the preferred phase to call is verify.
  source: S2
  evidence: "the preferred phase to call is"

## Sources

- [S1] Introduction to the Build Lifecycle. Maven site. https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html . License: Apache-2.0. Accessed 2026-11-16.

- [S2] Introduction to the Build Lifecycle (Maven site source). apache/maven-site (GitHub). https://github.com/apache/maven-site/blob/master/content/markdown/guides/introduction/introduction-to-the-lifecycle.md . License: Apache-2.0. Accessed 2026-11-16.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Maven site, Introduction to the Build Lifecycle, Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt); apache/maven-site (GitHub), Introduction to the Build Lifecycle, Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
