title: Deploy individual microservice using Jenkins pipeline in a multimodule spring boot microservices project
body: <p>I have a microservices project i.e structured as multimodule maven project with spring boot ,e.g</p>
  
  <ul>
  <li>microservice-module-1</li>
  <li>microservice-module-2</li>
  <li>parent-module with parent pom </li>
  </ul>
  
  <p>All microservices are packed under one scm repository. I want to setup a CI CD pipeline using Jenkins pipelines for my microservices . If some changes are made in <strong>microservice-module-1</strong> in repository then I want to deploy that particular microservice or module, webhook will notify jenkins for any change under parent repo but after packaging I want to deploy only microservice which was affected. There are reasons for this : - </p>
  
  <ul>
  <li>deploying all microservices again will take huge build and deployment time .</li>
  <li>Also many test stages will add up more time . </li>
  </ul>
  
  <p>So in my continuous delivery pipeline in Jenkins when a webhook trigger I want to deploy only changed services. Maven incremental plugin may serve the purpose but I want to know in context of microservices packaged as maven multimodule projectd.  Please tell me how to achieve this or If this approach should not be followed then please suggest best approach in this context. </p>