Deploy multiple microservices depending on each other for packages to docker container

I have to deploy microservices in java to docker container and these microservices depend on each other for packages to build. Like application a has the base packages required by other applications b,c and d so i can't do mvn clean install docker:build to build b,c and d without a. I am new to docker and can someone suggest me how to approach this problem.

I am using docker plugins in pom file and then using mvn clean install -d docker:build to make docker image.

#java #docker #microservices

4 Likes2.90 GEEK