-
Notifications
You must be signed in to change notification settings - Fork 144
Synchronise JAXB to Spring Boot #151
Comments
Unfortunately doing so then causes a <dependencyManagement>
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${javax-jaxb.version}</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>${javax-jaxb.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
With the current version on JDK 11 you instead get these warnings (javaee/jaxb-v2#1197)
|
The correct solution appears to be switching to the EE4J implementation, managed by Boot. <dependency>
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
<version>${project.parent.version}</version>
<exclusions>
<exclusion>
<groupId>com.sun.xml.bind</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<scope>runtime</scope>
</dependency> |
Thanks for the report, @OrangeDog, and for the extra research. I'll take a look. |
@OrangeDog can you confirm that the latest SNAPSHOT-BUILD resolves your issue? |
@jzheaux 2.0.0.SNAPSHOT_BUILD is the only one I can see, and it doesn't have any JAXB dependencies at all. Thus you get
|
@OrangeDog, it appears to be in Spring's snapshot repo: https://repo.spring.io/libs-snapshot/org/springframework/security/oauth/boot/spring-security-oauth2-autoconfigure/2.2.0.BUILD-SNAPSHOT/ |
Ah, I was looking in http://repo.spring.io/snapshot |
Possible to backport this to 2.1? |
Sure thing, @OrangeDog: #164 |
This project depends on jaxb-api, jaxb-core and jaxb-impl.
Spring Boot manages the jaxb-api version (currently 2.3.1) but not the others.
This results in using the wrong implementation (currently 2.3.0.1) for the API.
The text was updated successfully, but these errors were encountered: