BOM for Apache Tomcat 7.0.x / 8.0.x / 8.5.x / 9.0.x
A Maven BOM to simplify dependencies management in your webapp.
The versions used are summarized here :
Apache Tomcat Versions
Specifications used with Tomcat versions are detailed here :
Specifications
The BOM must be imported as scope “import” with the “pom” type, in the dependencyManagement section.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>fr.husta.tomcat</groupId>
<artifactId>tomcat-provided-spec-bom</artifactId>
<version>8.5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Then, simply import the needed dependency without specifying the version.
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
About the “bill of materials” (BOM) : Introduction to the Dependency Mechanism
Another example of BOM usage with Spring Framework : http://platform.spring.io/platform/#quick-start