5

Package relocation/rename is a major solution for jar hell issue. But one problem that troubles me for long time is that such solution are not effective on running in IDE directly or executing maven-test, so they will still suffer from Jar hell.

I'm looking for a maven plugin that can handle this on dependency level: so I can manually configured to rename package and rewrite classloading of them. Is it possible in Java and any built tool?

tribbloid
  • 4,026
  • 14
  • 64
  • 103
  • You are talking about the java package name/structure ? If you change the package names/structure you need to install your changes artifact and from there you can use it...Can explain more in detail what your problem is? – khmarbaise Sep 06 '15 at 12:05
  • I'm not going to manually change and mvn install the as its quite onerous. I need a maven plugin that can apply this to specific dependencies for me. maven-shade can do this in packaging (in particular, packaging of fat/uber jar) but won't be helpful for all other cases. I'm simply looking for a plugin that extend this feature for all stages (compiling/test/packaging) – tribbloid Sep 16 '15 at 20:52

0 Answers0