Hi all:

I have a project with two modules as below:

project
 -- module1 (shaded jar)
 -- module2  (war)

Module2 depends on module1. And module1 packages to a shaded jar with maven
shade plugin. Module2 packages to a war which depends on module1.

When I try to execute mvn package, it produces a war contains the shaded
jar but also the dependent libs which the shades jar depends.

That's strange.  How can I make the war contain shaded jar only but not the
dependent libs? Any advice, thanks.

Reply via email to