Given the project structure:
- webapp-reference/pom.xml
- webapp-reference/webapp-reference-core
- webapp-reference/webapp-reference-web (depends on core)
When I create a new project from a maven pom, IDEA creates the correct module dependency from my web module to the core. Everything compiles right out of the box. If I do a maven synchronization and then a full build, the inter-module dependency is lost and I get a number of compilations errors (which can be easily fixed by manually adding the aforementioned module dependency on core).
I've attached screenshots of the process.
Notes: