The parent pom spring-boot-starter-parent, contains the full dependencies (mvc, cache, jpa) and commons properties to maintain dependencies versions in a good consistency, to be used in our project or submodules.
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.0.RELEASE</version> </parent> |
We can manage the following things with the help of parent pom:
- Configuration: It maintains Java Version and Other Properties
- Dependency Management: It maintains Version of dependencies
- Default Plugin Configuration
It inherits dependency management from spring-boot-dependencies.
We can add some starters in your pom.xml depending on our need like web, jpa, batch etc.
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.0.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies> |