I have a multi-module Project imported in IntellJ. For instance: Parent -> Modules (A, B, C).
Modules B and C depends on A. Module A has a dependency to a 3th-Party-library E.
Since E is a very bad assambled library containing a lot of stuff we don't need and can't configure properly, we decided to extract the few classes we need with the machen-dependency-plugin and put them into the target/classes Directory. The Team providing the library is working on modulaizing the Project better but we can't wait unitl they are finished so we used this work around.
This works fine, the only problem we have is that these extracted classes are not found by IntellJ when referencing them in A, so we need to add the dependency in the dependencies section of the A-pom.xml for the Editor showing/handling Imports etcetera properly.
The Services B and C which are depending on A. Won't start since we are adding the dependencies of the 3th-party-libraries for letting the Editor work properly.
How can I tell Intellij to see the extracted (binaries/)classes in target/classes of A so we don't need to add the 3th-Party dependencies explicitly to let the editor work properly? How can I tell IntelliJ to see those classes in the sibling/dependant modules B and C too?
I'm grateful fo any help.