Bill of Materials (BOM)
About
Why Use a BOM?
Problem Without BOM (Version Inconsistency & Repetition)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>3.1.0</version>
</dependency>Solution With BOM (Centralized Versioning)
How to Create a BOM ?
Example BOM POM (my-bom/pom.xml)
my-bom/pom.xml)Using a Custom BOM in a Project
Maven's Built-in BOMs
Spring Boot BOM (Recommended for Spring Projects)
Jakarta EE BOM (For Enterprise Java Applications)
Benefits of Using BOM
Feature
Without BOM
With BOM
Last updated