Maven – Getting IntelliJ to import shaded dependencies in a multi-module maven project


I have two modules, Component and Application. The Component module is shaded due to a dependency conflict (google protocol buffers) later in the build process.

<!-- snip from Component's pom.xml -->

The Application depends on the Component module. However, source files in the Application cannot reference the shaded library that the Component depends on. This is critical for interacting with the Component.

     <-- snip from Application's pom.xml -->   

Even though the import can't be found by IntelliJ, the Maven build works fine. What am I missing/doing-wrong?

Best Solution

Too bad, after opening a ticket with JetBrains, this problem has been previously reported and is currently not supported in IntelliJ.