Skip to content

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.

bjhargrave added 2 commits May 5, 2022 14:26
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

@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