title: How to have multiple spring boot applications in one repository?
body: <p>We currently have several small code bases which are all using spring boot and have some duplicate code. We would like to bring these into the same repository and are just looking for the best approach to do this. We have been looking at either have one src/main which contains all of the code and then we have different mains that can be called to run (<a href="https://spring.io/blog/2015/07/14/microservices-with-spring#configuration-options" rel="nofollow">based on this tutorial</a>) or having separate modules in the same repository and then having one parent module which has the shared logic.</p>
  
  <p>Any experience from doing something similar would be appreciated</p>