Docker-compose Could not resolve dependencies for project and Could not find artifact Issue


I have a problem about running docker-compose.yml in my Spring Boot Microservices.

In my project directory, I run this command (docker-compose up -d) after running mvn install to create jar files.

When docker tries to build report service, I get an issue.

I added advertisement service into report service before.

Here is my error shown below.

Failed to execute goal on project report: Could not resolve dependencies for project com.springbootmicroservices:report:jar:0.0.1-SNAPSHOT: Could not find artifact co
m.springbootmicroservices:advertisement:jar:0.0.1-SNAPSHOT -> [Help 1]

Here is my project link: Link

Here is the image

How can I fix it?

Don’t open new topics for the same question.