title: spring boot 2 + entity/jpa as sub module
body: <p>spring boot 2 with maven multi-module project</p>
  
  <p>how can we create JPA/entity as the separate module and add the dependency to the main project ??</p>
  
  <p>I have read many links but still not find the solution, please help...</p>
  
  <p>I want to create a project structure like below...</p>
  
  <p>entity-project - all entity and JPA related configuration [ database and all configuration ]</p>
  
  <p>master-service [ which include entity ] and repository for entity project would be here.</p>
  
  <p>Please help...</p>