Skip to content

Commit 5c4b30c

Browse files
committed
Pin stax2-api to avoid RequireUpperBoundDeps failures (#2205)
1 parent fe164eb commit 5c4b30c

File tree

4 files changed

+9
-20
lines changed

4 files changed

+9
-20
lines changed

log4j-core-its/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@
9191
<artifactId>jctools-core</artifactId>
9292
<optional>true</optional>
9393
</dependency>
94-
<!-- POM for jackson-dataformat-xml depends on woodstox-core -->
95-
<dependency>
96-
<groupId>com.fasterxml.woodstox</groupId>
97-
<artifactId>woodstox-core</artifactId>
98-
<optional>true</optional>
99-
</dependency>
10094
<dependency>
10195
<groupId>org.apache.logging.log4j</groupId>
10296
<artifactId>log4j-api-test</artifactId>

log4j-core-java9/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<properties>
3131
<maven.compiler.release>9</maven.compiler.release>
3232
<maven.deploy.skip>true</maven.deploy.skip>
33+
<stax2-api.version>4.2.2</stax2-api.version>
3334
</properties>
3435
<dependencies>
3536
<!-- Naturally, all implementations require the log4j-api JAR -->
@@ -45,6 +46,14 @@
4546
<groupId>com.fasterxml.jackson.dataformat</groupId>
4647
<artifactId>jackson-dataformat-xml</artifactId>
4748
</dependency>
49+
<!-- Pinning `org.codehaus.woodstox:stax2-api` (which is injected by `com.fasterxml.jackson.dataformat:jackson-dataformat-xml`) to avoid `RequireUpperBoundDeps` failures: -->
50+
<dependency>
51+
<groupId>org.codehaus.woodstox</groupId>
52+
<artifactId>stax2-api</artifactId>
53+
<version>${stax2-api.version}</version>
54+
<scope>runtime</scope>
55+
<optional>true</optional>
56+
</dependency>
4857
<dependency>
4958
<groupId>org.apache.maven</groupId>
5059
<artifactId>maven-core</artifactId>

log4j-core/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,6 @@
199199
<scope>runtime</scope>
200200
<optional>true</optional>
201201
</dependency>
202-
<!-- POM for jackson-dataformat-xml depends on woodstox-core -->
203-
<dependency>
204-
<groupId>com.fasterxml.woodstox</groupId>
205-
<artifactId>woodstox-core</artifactId>
206-
<scope>runtime</scope>
207-
<optional>true</optional>
208-
</dependency>
209202
</dependencies>
210203
<build>
211204
<plugins>

log4j-parent/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
<tomcat-juli.version>10.0.27</tomcat-juli.version>
145145
<velocity.version>1.7</velocity.version>
146146
<wiremock.version>2.35.1</wiremock.version>
147-
<woodstox.version>6.6.0</woodstox.version>
148147
<xmlunit.version>2.9.1</xmlunit.version>
149148
<xz.version>1.9</xz.version>
150149
<zstd.version>1.5.5-11</zstd.version>
@@ -1031,12 +1030,6 @@
10311030
<version>${wiremock.version}</version>
10321031
</dependency>
10331032

1034-
<dependency>
1035-
<groupId>com.fasterxml.woodstox</groupId>
1036-
<artifactId>woodstox-core</artifactId>
1037-
<version>${woodstox.version}</version>
1038-
</dependency>
1039-
10401033
<dependency>
10411034
<groupId>org.xmlunit</groupId>
10421035
<artifactId>xmlunit-core</artifactId>

0 commit comments

Comments
 (0)