Skip to content

Commit

Permalink
Stop Jersey from pulling in duplicate classes with JDK 11+
Browse files Browse the repository at this point in the history
Closes gh-17404
  • Loading branch information
wilkinsona committed Jul 2, 2019
1 parent 73cf115 commit e5549f7
Showing 1 changed file with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@
<artifactId>jersey-media-json-jackson</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</dependency>
</dependencies>
<build>
Expand All @@ -142,4 +142,24 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jdk11+</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<dependencies>
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<exclusions>
<exclusion>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</profile>
</profiles>
</project>

0 comments on commit e5549f7

Please sign in to comment.