I have 2 maven projects; the first one has this pom:
<groupId>deseuri</groupId>
<artifactId>sim-common</artifactId>
<version>1.0.1</version>
<name>sim-common</name>
<dependencies>
/*
dependencies
*/
</dependencies>
In the second project, I want to use the first one as a dependency, like this:
<groupId>utils</groupId>
<artifactId>utils</artifactId>
<version>1.0.1</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>deseuri</groupId>
<artifactId>sim-common</artifactId>
<version>1.0.1</version>
</dependency>
// other depdencies
</dependencies>
The first project build successfully with "mvn clean install", and it creates a jar file in my local maven repository (in .m2), but when I run clean install on the second project it says:
package ro.sim.commonApp.model does not exist
...which is in the first project.
P.S.: If I choose "Make project" from Intellij Idea (which creates the source files in the target folder) and then run clean install it works fine.
Thanks, Tekin.