Is there a way to make IntelliJ recognize shaded jars/libraries when debugging?
已回答
Hello everyone,
We consume some libraries that are shipped as shaded jars. The full name of the classes that are contained in shaded jars are mutated to make them globally unique and avoid conflicts with external jars added to the classpath.
The problem that we are facing is that, when debugging the project, IntelliJ is not able to correlate the classes that are in the shaded jar with their source code. It is understandable since the full name of the class is changed in the shaded jar, but there should be a way for the user to inform IntelliJ that the jar was shaded and allow the debugger to work.
Does anyone know if there is a way to get around this problem?
Thank you,
Felipe
请先登录再写评论。
Unfortunately, IntelliJ IDEA doesn't support it at the moment:
https://youtrack.jetbrains.com/issue/IDEA-195230/Debugger-not-working-with-shaded-classes
https://youtrack.jetbrains.com/issue/IDEA-93855/Please-add-support-for-maven-shade-plugin-renaming
Thank you Serge Baranov. I hope this is addressed in the future.