buildplan-maven-plugin
buildplan-maven-plugin copied to clipboard
maven-release-plugin goals not listed.
Using:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
Does not list in
mvn buildplan:list-plugin -Dbuildplan.plugin=maven-release-plugin
Output:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MyProject 0.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildplan-maven-plugin:1.3:list-plugin (default-cli) @ myproject---
[WARNING] No plugin found with artifactId: maven-release-plugin
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.844 s
[INFO] Finished at: 2020-06-01T11:20:26-04:00
[INFO] Final Memory: 14M/245M
[INFO] ------------------------------------------------------------------------
You have bind the maven-release-plugin
somewhere in the default lifecyle ?
This plugin goal is to list what's executed by Maven, by default it simulates the deploy
phase.
You can change that with the -Dbuildplan.tasks
property.
For the maven-release-plugin
as you're usually running it by typing mvn release:prepare
and release:perform
, there is no goal execution linked to any phase of the default Maven lifecycle.
You could run
mvn buildplan:list -Dbuildplan.tasks="release:prepare,release:perform"
but the output will not contains what the plugin would run as the plugin is controlling a new lifecyle by itself (I don't know if it can be handle).
said another way: release goals are not part of the normal build plan
that's expected, it's not run when you do usual mvn package