Member-only story
Spring Application and Parent Maven Pom
Introduction:
When we want to create a new web application using spring boot, ensure we need used maven to use some dependency from maven repository and the maven represent in Pom.xml, but if we have a microservice application from ten web applications or more than, and in some stage we need update some dependency to latest version, we need visit each project and update it manually, but with this article you don’t need to do it because all of the dependencies in the same location called Root or Parent project.
Inside the Parent, the project will put all the dependencies used in every project, and the other projects will see it and use any dependencies from the parent project.
Let’s go to see how we can make it.
Steps to create the project
Building the Root project:
To build the Root project we need open any Idea to write our code and after that, we need to go Pom.xml because in this article I use Maven, you can do the same thing with Gradle. and we can cover Root with Gradle but in another article.
The Root project (Parent):
The parent Project has one file Just Pom.xml, in the Pom.xml will put all Dependencies to use it into other projects,