Refactoring import statements using Shade relocations in Maven
问题 I've been using Shade to relocate a dependency from com.package.x to com.package.y ; when I build with Maven, it complains due to incompatible types - so I have to change my import statements inside my code to match com.package.y . Is this really the only way to go about this? Changing the imports is making IntelliJ complain and basically breaks IDE integration. Is there no way Shade can modify the imports? 回答1: The main use case of the shade plugin is to generate an uber-jar while relocating