Q:

Spring Boot Microservice depends on another Microservice in Jenkins

I have developed two Springboot michroservices ex- service1 and service2. service2 microservice having dependency of service1. 
I've added dependency of service1 in service2 pom file and working expected in eclipse while running service2. but when I deployed in Jenkins and I've created project(Jenkins Job)  for service1 and ran with maven goal 'clean install', project builds successfully. 
When I created project(Jenkins Job) for service2 and running the Jenkins Job, build is failing because service2 is not able to find the dependency of service1. 

A:

Issue Resolved!!! whenever we are using spring dependency in depedent project we don't need to add maven/spring compiler plug-in.

