-
Notifications
You must be signed in to change notification settings - Fork 127
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
acceptPomPackage does not have effect on the parent project when aggregate-add-third-party #271
Comments
Would running |
yes with the above property set to true. My question is what I describe is wanted behaviour or it's a bug? Or at least the documentation is misleading for aggregate-add-third-party but valid for add-third-party goal. |
I have no opinion on that. You may try your luck to ask the original author(s). |
I should ask to @tchemit but since seems you are the mantainer and the most (second) contributor for this plugin. What do you think? Is reasonable think to have the same behaviour for both goals? |
Taken very strictly, the proposed fix changes the meaning of a param which accounts to breaking the backwards compatibility. At the same time, I admit the proposed behavior might be both useful and what the most users expect based on what the JavaDoc says. I am ready to accept the fix under the following conditions:
Is 1. and 2. acceptable for you, @nfalco79 ? |
I know about my English, but here seems there was not volunteers to describe parameters in a way that everyone can understand (javadoc was written in my free time at 3 a.m., not "sponsorized" by our society) About backwards compatibility, actually the goal has not effect on root project that means
If you think so, we can already add a parameter (excludeRootProject) to keep the old behavior. Any suggestions on the name? |
No, I vote for doing it only if somebody comes with a complaint in the future (which very much hope will not happen ;-) |
Ok. |
Fix #271 aggregate-add-third-party evaluate acceptPomPackage also for…
Hi, we have a maven project (packaging pom) that aggregate only artifacts to be delivered to a client.
To do this usually we define dependencies on a project of with pom packaging and run the assembly plugin (or depedency-copy-dependency) to gathers all of them.
Now our department would realize a report to double check all licenses to give to a client.
The acceptPomPackage documents "To execute or not this mojo if project packaging is pom." but it is not executed if the project is that where we run the mvn command.
Looking the code the aggregate-add-third-party cycles on each project in the reactor but skip itself. This mean that only child module of kind pom are considered. From the documentation I expect it run a forked add-third-party also on the parent pom (the project from which I run mvn command).
The text was updated successfully, but these errors were encountered: