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 lifecycle participation fix #5238

Merged

Conversation

bjhargrave
Copy link
Member

Fixes to the bnd-maven-plugin life cycle participant to more carefully replace goals.

Only alter jar plugin executions for jar packaging. Only alter war
executions for war packaging.

Don't remove execution if one of the executions goals matches.
First we remove the goals and if no goals are left, we remove the
execution.

The collection of packaging goals is a set. Handle war goal as
no classification.

Signed-off-by: BJ Hargrave <bj@hargrave.dev>
Only alter jar plugin executions for jar packaging. Only alter war
executions for war packaging.

Don't remove execution if one of the executions goals matches.
First we remove the goals and if no goals are left, we remove the
execution.

Signed-off-by: BJ Hargrave <bj@hargrave.dev>
@bjhargrave bjhargrave requested a review from rotty3000 May 5, 2022 19:54
Copy link
Contributor

@rotty3000 rotty3000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bjhargrave bjhargrave merged commit 815cb77 into bndtools:master May 5, 2022
@bjhargrave bjhargrave deleted the maven-lifecycle-participation-fix branch May 5, 2022 20:37
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

Successfully merging this pull request may close these issues.

2 participants