How to list all available maven life cycles?

In maven, you can list all phases of a certain life cycle with help:describe:

$ mvn help:describe -Dcmd=package
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-help-plugin:2.2:describe (default-cli) @ standalone-pom ---
[INFO] 'package' is a phase corresponding to this plugin:

It is a part of the lifecycle for the POM packaging 'pom'. This lifecycle includes the following phases:
* validate: Not defined
* initialize: Not defined
* generate-sources: Not defined
* process-sources: Not defined
* generate-resources: Not defined
* process-resources: Not defined
* compile: Not defined
* process-classes: Not defined
* generate-test-sources: Not defined
* process-test-sources: Not defined
* generate-test-resources: Not defined
* process-test-resources: Not defined
* test-compile: Not defined
* process-test-classes: Not defined
* test: Not defined
* prepare-package: Not defined
* package: Not defined
* pre-integration-test: Not defined
* integration-test: Not defined
* post-integration-test: Not defined
* verify: Not defined
* install: org.apache.maven.plugins:maven-install-plugin:2.4:install
* deploy: org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy

For this, it is required to indicate some (arbitrary?) Phase of this life cycle.

I know the clean, default and life cycle of a site .

If I understand this section correctly , you can also add completely new life cycles.

Is there a team to list all the available life cycles and at what stages they consist?

+4
source share
1 answer

This is a misunderstanding.

"custom lifecyle" lifecylcle. Lifecycle maven, , / maven.

, forking, . .

0

Source: https://habr.com/ru/post/1530869/


All Articles