为什么从JAXB参考实现中删除了AnnotationReader? [英] Why has AnnotationReader been removed from JAXB reference implementation?

查看:339
本文介绍了为什么从JAXB参考实现中删除了AnnotationReader?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

com.sun.xml.bind.v2.model.annotation.AnnotationReader 是jaxb-impl 2.1.6的一部分,但已在2.1中删除。 7。有人知道为什么吗?

The class com.sun.xml.bind.v2.model.annotation.AnnotationReader was part of jaxb-impl 2.1.6, but has been removed in 2.1.7. Does anybody know why?

推荐答案

JAXB工件在 2.2.11重新构建所以在 jaxb-runtime jaxb-core 之间移动了几个类。 AnnotationReader 不是唯一的。主要原因是(可能)由于依赖结构而需要重新排列几个类的mavenisation。

JAXB artifacts were restructured in 2.2.11 so a few classes were moved between jaxb-runtime and jaxb-core. AnnotationReader is not the only one. The main reason is (probably) the mavenisation which required rearranging a few classes due to dependency structure.

不幸的是旧的工件 com.sun.xml .bind:* 有一个错误的依赖结构,所以如果你只需要 jaxb-impl 之后你还需要 JAXB芯。如果这是您的问题,您应该移动到新的 org.glassfish.jaxb:* 工件,因为它们具有正确的结构。 org.glassfish.jaxb:jaxb-core org.glassfish.jaxb:jaxb-runtime 的依赖项,它取代了旧的 org.glassfish.jaxb:jaxb-impl

Unfortunately the old artifacts com.sun.xml.bind:* has a bit wrong dependency structure so if you just used jaxb-impl before you'd also need jaxb-core. If this was your problem you should move to the new org.glassfish.jaxb:* artifacts as they have the right structure. org.glassfish.jaxb:jaxb-core is a dependency of org.glassfish.jaxb:jaxb-runtime which replaces the old org.glassfish.jaxb:jaxb-impl.

参见:


我应该在我的Maven项目中使用哪些工件用于JAXB RI?

这篇关于为什么从JAXB参考实现中删除了AnnotationReader?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆