I read a lot of posts regarding the ways to use spring-boot-starter-parent in a spring boot project. Essentially, I read posts (Spring documentation also talks about this) describing two ways to do this
- To use spring-boot-starter-parent as the project parent directly. It gives us the benefits of having the dependency management as well as the plugin management.
- The other way is to import the spring-boot-starter parent in the project pom (we may need this in case we already have a parent pom for the project). It allows us to get the benefits of dependency management but not the plugin management)
I am creating a new Maven multi module project. Ideally I would like to have my own custom parent and also get all the benefits of using the Spring-boot-starter-parent. I was wondering if it made sense to create a custom parent for my maven projects. This parent would in turn be a child of the spring-boot-starter-parent. If I am not missing anything, this way I could get the benefits of having the dependency management and plugin management from spring-boot-starter-parent and at the same time have a custom parent for all my projects where I could define some other common dependencies or if needed override the dependencies defined in the spring-boot-starter-parent which would then be inherited by all my projects. Does this design make sense or am I missing something. What are the drawbacks of this approach?