maven-shade-plugin icon indicating copy to clipboard operation
maven-shade-plugin copied to clipboard

[MSHADE-419] Add an integration test

Open gnodet opened this issue 3 years ago • 2 comments

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.

gnodet avatar Oct 22 '22 10:10 gnodet

Resolve #711

jira-importer avatar Jun 14 '25 16:06 jira-importer

Resolve #711

jira-importer avatar Jun 14 '25 17:06 jira-importer