I am using docker-maven-plugin(Spotify) to build my docker images generated by Dockerfile in my Spring Boot project. If the project has no any module dependency it works well. But if a module is dependent to another like:
<dependency>
<groupId>com.mysite</groupId>
<artifactId>helper</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
When I run
./mvnw install dockerfile:build
I got
Could not resolve dependencies for project com.mysite:web:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.mysite:helper:jar:0.0.1-SNAPSHOT
How can I solve this?