Skip to content

Commit fbade8c

Browse files
committed
Add Jackson BOM to dependencyManagement to fix version conflicts
Transitive dependencies (e.g. geojson-jackson pulling in jackson-core 2.10.0) could override the intended Jackson version, causing NoSuchMethodError at runtime. The BOM ensures all Jackson artifacts resolve to ${jackson.version}.
1 parent e5a7cc5 commit fbade8c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,15 @@
472472
<scope>import</scope>
473473
</dependency>
474474

475+
<dependency>
476+
<!-- This makes sure all Jackson libraries are using compatible versions. -->
477+
<groupId>com.fasterxml.jackson</groupId>
478+
<artifactId>jackson-bom</artifactId>
479+
<version>${jackson.version}</version>
480+
<type>pom</type>
481+
<scope>import</scope>
482+
</dependency>
483+
475484
<dependency>
476485
<groupId>com.google.protobuf</groupId>
477486
<artifactId>protobuf-java</artifactId>
@@ -680,7 +689,7 @@
680689
</repository>
681690
</distributionManagement>
682691
</profile>
683-
692+
684693
<profile>
685694
<id>integrationTests</id>
686695
<activation>

0 commit comments

Comments
 (0)