If you are using Spring Boot, then the simplest option to manage dependency versions is to use spring-boot-starter-parent as the parent POM. This is the option we used in all our project examples in this book:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>${spring-boot.version}</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
Versions of more than 200 dependencies are managed by spring-boot-starter-parent. Before a Spring Boot release, it is ensured that all the versions of these dependencies play well together. The following are some of the dependency versions that are managed:
<activemq.version>5.14.3</activemq.version>
<ehcache.version...