I have 2 maven projects: one is a rest service with a WAR packaging (rest), the other one is a module to access database with a jar packaging (service).
In the pom of the rest module I add the dependency with service as follows:
<dependency>
<groupId>project</groupId>
<artifactId>service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
However I'm getting this error:
Project 'rest' is missing required library: 'C:\Users\user.m2\repository\project\service\0.0.1-SNAPSHOT\service-0.0.1-SNAPSHOT.jar'
I'm still developping the service module, so it can't be in .m2 library. How can I connect this two modules. Is there any way that I can access to my service functions in the @RestController
classes?
EDIT: My project directory structure is
Rest
|--- pom.xml
Service
|--- pom.xml
Both are independent projects.
Running mvn clean package install
on service project works, but, is there any way to make maven read my snapshoot version?