buildplan-maven-plugin icon indicating copy to clipboard operation
buildplan-maven-plugin copied to clipboard

maven-release-plugin goals not listed.

Open ankurmarfatia opened this issue 4 years ago • 2 comments

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] ------------------------------------------------------------------------

ankurmarfatia avatar Jun 01 '20 15:06 ankurmarfatia

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).

jcgay avatar Jun 05 '20 15:06 jcgay

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

hboutemy avatar Jun 18 '22 06:06 hboutemy