This is an automated email from the ASF dual-hosted git repository. hboutemy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-site.git
The following commit(s) were added to refs/heads/master by this push: new e899dd0b simplify list of phases in this simple intro e899dd0b is described below commit e899dd0b88a2de1304d187a6734d753aa368149f Author: Hervé Boutemy <hbout...@sonatype.com> AuthorDate: Wed Dec 13 17:35:12 2023 +0100 simplify list of phases in this simple intro --- content/markdown/run.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/content/markdown/run.md b/content/markdown/run.md index 341d6eea..8b2c4c08 100644 --- a/content/markdown/run.md +++ b/content/markdown/run.md @@ -25,21 +25,17 @@ All available options are documented in the built-in help that you can access wi mvn -h -The typical invocation for building a Maven project uses a Maven life cycle phase. E.g. +The typical invocation for building a Maven project uses a Maven lifecycle phase. E.g. mvn verify -The built-in lifecycles and their phases, in order, are: +The built-in lifecycles and their most used phases, in order, are: -* clean - pre-clean, clean, post-clean +* clean - `clean` -* default - validate, initialize, generate-sources, process-sources, generate-resources, -process-resources, compile, process-classes, generate-test-sources, process-test-sources, -generate-test-resources, process-test-resources, test-compile, process-test-classes, -test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, -verify, install, deploy +* default - `validate`, `compile`, `test`, `package`, `verify`, `install`, `deploy` -* site - pre-site, site, post-site, site-deploy +* site - `site`, `site-deploy` A fresh build of a project generating all packaged outputs and the documentation site and deploying it to a repository manager could be done with @@ -48,6 +44,10 @@ and deploying it to a repository manager could be done with Just creating the package and installing it in the local repository for re-use from other projects can be done with + mvn install + +And if you don't expect to re-use from other projects, use + mvn verify This is the most common build invocation for a Maven project. @@ -62,7 +62,7 @@ or mvn checkstyle:check -There are many different plugins available and they all implement different goals. +There are many different [plugins available](/plugins/) and they all implement different goals. Further resources: