java - Refactoring import statements using Shade relocations in Maven -


i've been using shade relocate dependency com.package.x com.package.y; when build maven, complains due incompatible types - have change import statements inside code match com.package.y.

is way go this? changing imports making intellij complain , breaks ide integration. there no way shade can modify imports?

the main use case of shade plugin generate uber-jar while relocating packages inside of prevent conflicts. rule don't want developing against uberjar.

if want develop against shaded jar (or you're solely using shade relocate existing jar), you'll need list shaded jar in lieu of original jar, imagine may need clean cyclic dependency.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -