How to override the version numbers from Spring Boot when importing a BOM pom?

Adding jackson-bom.version to your properties section of the pom.xml file should update jackson dependencies. This will override jackson version in the Spring Boot Parent POM.

<properties>
    <jackson-bom.version>2.12.1</jackson-bom.version>
</properties>

Using jackson.version is not going to work. Please see https://github.com/spring-projects/spring-boot/issues/17808


  1. You can re-order your BOM imports and this will work. Place Jackson BOM before the Spring Boot BOM. Quick example https://github.com/Flaw101/gsonconverter/blob/feature/jackson_override/pom.xml
  2. If you use the Spring Boot Parent POM you just need to override their property jackson.version to override versions of other frameworks/libraries

This is also documented by Spring Boot,

https://docs.spring.io/platform/docs/current/reference/html/getting-started-overriding-versions.html

A couple of additional links,

https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-build-systems.html#using-boot-maven-parent-pom

https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-build-systems.html#using-boot-maven-without-a-parent