Skip to content

Commit b2579ae

Browse files
committed
Fix REST OpenAPI JAXB dependency
1 parent 68f5e29 commit b2579ae

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

external-service-impl/rest/pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,16 @@
5151
<artifactId>rest-openapi</artifactId>
5252
<version>2.0.7-SNAPSHOT</version>
5353
<exclusions>
54-
<!-- repeated in datanode -->
54+
<!--
55+
Keep jakarta.xml.bind-api 3.x for the Swagger/OpenAPI runtime. The
56+
datanode-provided jakarta.xml.bind-api 2.3.x still contains the old
57+
javax.xml.bind namespace and cannot satisfy jakarta.xml.bind classes.
58+
Exclude the JAXB-transitive activation implementation to avoid
59+
duplicating jakarta.activation classes with jakarta.activation-api.
60+
-->
5561
<exclusion>
56-
<groupId>jakarta.xml.bind</groupId>
57-
<artifactId>jakarta.xml.bind-api</artifactId>
62+
<groupId>com.sun.activation</groupId>
63+
<artifactId>jakarta.activation</artifactId>
5864
</exclusion>
5965
<!-- repeated in datanode -->
6066
<exclusion>

0 commit comments

Comments
 (0)