[hibernate-dev] Depending on JAXB / JDK11 compatibility

Sanne Grinovero sanne at hibernate.org
Wed May 2 17:50:58 EDT 2018


On 2 May 2018 at 22:39, Guillaume Smet <guillaume.smet at gmail.com> wrote:
> Hi Sanne,
>
> On Wed, May 2, 2018 at 11:24 PM, Sanne Grinovero <sanne at hibernate.org>
> wrote:
>>
>> <!-- All replacements for JAXB -->
>> <dependency>
>>     <groupId>javax.xml.bind</groupId>
>>     <artifactId>jaxb-api</artifactId>
>>     <scope>provided</scope>
>> </dependency>
>>
>> <dependency>
>>     <groupId>com.sun.xml.bind</groupId>
>>     <artifactId>jaxb-impl</artifactId>
>>     <scope>test</scope>
>> </dependency>
>
>
> Not sure where you got these dependencies.
>
> I think the one we should use is the following:
> <groupId>org.glassfish.jaxb</groupId>
> <artifactId>jaxb-runtime</artifactId>
> (which comes with quite a few transitive dependencies unfortunately)

The org.glassfish stuff is legacy / deprecated. You should use the
groupId javax.xml.bind now.

Great example of the kind of confusion I'd like to avoid every user to have :)

> JAXB is currently maintained here: https://javaee.github.io/jaxb-v2/.

That's right, and uses "javax.xml.bind" if you check its sources.

>
> HTH
>
> --
> Guillaume


More information about the hibernate-dev mailing list