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

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

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

java - Cannot secure connection using TLS -