[
https://issues.apache.org/jira/browse/MSHADE-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16916744#comment-16916744
]
Niels Basjes commented on MSHADE-36:
------------------------------------
[[email protected]] : When building a multi module project there will
still be problems regarding the dependencies in the other modules.
I recently wrote a page about that how I solved that in my own project:
[https://yauaa.basjes.nl/NOTES-shading-dependencies.html]
Essentially what works for me:
* Library has dependencies (shaded into the jar)
* Other modules use it as a dependency, exclude the shaded dependencies,
re-include the shaded dependencies as 'provided'.
> Dependency reduced pom does not replace the packaged META-INF/maven version
> ---------------------------------------------------------------------------
>
> Key: MSHADE-36
> URL: https://issues.apache.org/jira/browse/MSHADE-36
> Project: Maven Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.1
> Reporter: Mark Hobson
> Priority: Major
>
> The dependency reduced pom needs to replace the packaged pom at:
> META-INF/maven/<groupId>/<artifactId>/pom.xml
> This will allow tools that use this metadata to read the correct shaded
> dependencies (e.g. maven-runtime).
--
This message was sent by Atlassian Jira
(v8.3.2#803003)