Reputation: 5859
I have a multi-module project in IntelliJ with the following structure:
**simulator**
pom.xml
**protocol** -> has dependency on simulator
pom.xml
Everything is resolved fine in the code editor, in my protocol project I can import package from simulator and build the protocol project without problems.
The problem starts when I try to use Maven - if I run the "package" command, I get a lot of errors regarding packages not existing. Please see screenshot.
My protocol project pom.xml has a dependency on the simulator project, like so:
<dependency>
<groupId>uk.co.pervasive_intelligence.simulator</groupId>
<artifactId>simulator</artifactId>
<version>1.2.2</version>
</dependency>
The scope is set to "Compile". What am I doing wrong?
Upvotes: 2
Views: 604