Can't access to transitive maven module's code

219 Views Asked by At

This is about Intellij IDEA + Maven modules. We working in module A, which has a dependency - module B, and module B in dependencies - module C. When you incude B as a dependency and access classes from C (transitively), IDEA says that it does not understand what classes you import, it writes Cannot find symbol... and highlights such classes in red. However, mvn package is successfull and application starts. Workaround to enable code highlighitng - direct reference in the "Project structure -> modules" to the desired module, which is used transitively.

0

There are 0 best solutions below