-
Notifications
You must be signed in to change notification settings - Fork 85
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
flatten-vs-shade incompatibility #100
Comments
I encountered the exact issue you described. I was able to fix this by simply changing the order of execution between shade and flatten. Just make sure |
👍 Also had to change the |
@olamy @khmarbaise Can you please comment your ideas on this issue? How shall we go on? |
I encountered the exact issue you described. Changing the order of execution between shade and flatten didn't work for me The reduced pom is indeed not flattened but also I have noticed that there is a error with the generated reduced pom with the parents's relativePath originally its ../weasis-parent/pom.xml @see https://i.stack.imgur.com/boolA.png that's probably the reason why it cannot resolve the parents pom
|
@olamy @khmarbaise Can you please comment your ideas on this issue? How shall we go on? |
While there may be uses for that, shade will not reduce dependencies coming from parent POM in this case. |
Hi @mkarg , changing to The root cause should be the inconsistent of The work around of run flatten in |
I think |
Any chance the above PR will get reviewed? Assuming it does indeed fix the issue. I just got bitten by this but can't find a work around since I need to create a dependency-reduced pom at the same time. |
either of these two pr would fix tie incompatibility issue: |
When using Flatten Maven Plugin in the same project with Maven Shade Plugin then the dependency reduced POM is not flattened.
One of both plugins must have a bug, but which one?
I noticed that the cause seems to be this line of the shade plugin:
Model model = project.getOriginalModel();
For test purposes I changed it to
project.getModel()
which fixes the problem (i. e. it now reduces the flattened POM), but imposes a new problem: This does not flatten the POM, it flattens the effective POM.Any ideas appreciated, so I could track the original cause, and file the bug in the right tracker.
The text was updated successfully, but these errors were encountered: