-1
  1. I have single module pom.xml.
  2. There is third party dependency "library.jar" and contains classes "org.slf4.*" stuff.
  3. I can shade it (exclude) to "library-shaded.jar" and use later after package but:
  4. During development in Intellij Idea (run configuration) the original one "library.jar" still available and make me sad.

can you suggest, pls?

UPD: original "library.jar" is available not only in "run configuration", of course it available in entire project, because it in dependency.

UPD: I'm gonna try this solution. Make multi module maven project:

  1. First module should shade "library.jar" and copy the shaded one to some folder "shades" (using maven-dependency-plugin).
  2. Second module should be dependent from "shaded/library-shaded.jar"

0 Answers0