在什么情况下,我需要在jaxb-impl和jaxb-core之间做出选择?在我的项目中同时使用jaxb-impl和jaxb-core会导致任何类加载冲突?
发布于 2022-10-28 16:30:54
如果使用Maven Central中的com.sun.xml.bind构件,那么jaxb-core似乎是jaxb-impl、jaxb-xjc和jaxb-jxc的底层(共享)依赖;因此,需要 jaxb-core来使用jaxb-impl。
<!-- jaxb-impl -->
<!-- ... --->
<!-- ... --->
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<packaging>jar</packaging>
<name>Old JAXB Runtime</name>
<description>Old JAXB Runtime module. Contains sources required for runtime processing.</description>
<url>https://eclipse-ee4j.github.io/jaxb-ri/</url>
<dependencies>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
</dependency>
<!-- ... -->
<!-- ... ---><!-- jaxb-core -->
<!-- ... --->
<!-- ... -->
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<packaging>jar</packaging>
<name>Old JAXB Core</name>
<description>Old JAXB Core module. Contains sources required by XJC, JXC and Runtime modules with dependencies.</description>
<url>https://eclipse-ee4j.github.io/jaxb-ri/</url>
<!-- ... -->
<!-- ... -->https://stackoverflow.com/questions/39735265
复制相似问题