maven-shade-plugin
maven-shade-plugin copied to clipboard
[MSHADE-419] Add an integration test
JIRA issue: https://issues.apache.org/jira/browse/MSHADE-419
Shade plugin causes pom to be created without compile dependencies
IT extracted from #149
===============
The problem was introduced by MSHADE-321 in 3.3.0 because before, the createDependencyReducedPom method was only ever called when shadedArtifactAttached is false.
The createDependencyReducedPom method not only writes the dependency reduced pom file but also modifies the current project to use it as replacement for its original pom.
This has an effect on all maven build logic being executed afterwards.
Thus, in multi module builds, when a module attaches a shaded jar, its non-shaded artifact no longer contains transitive dependencies when used from other modules, even though the pom in its jar still declares them.
Resolve #711
Resolve #711