Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven-release-plugin goals not listed. #33

Open
ankurmarfatia opened this issue Jun 1, 2020 · 2 comments
Open

maven-release-plugin goals not listed. #33

ankurmarfatia opened this issue Jun 1, 2020 · 2 comments

Comments

@ankurmarfatia
Copy link

ankurmarfatia commented Jun 1, 2020

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] ------------------------------------------------------------------------
@jcgay
Copy link
Member

jcgay commented Jun 5, 2020

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

@hboutemy
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants