Reputation: 4096
Under what scenario i need to choose between jaxb-impl
vs jaxb-core
?
having both jaxb-impl
and jaxb-core
in my project would cause any class loading conflicts?
Upvotes: 21
Views: 4122
Reputation: 503
If you go by the com.sun.xml.bind
artifacts in Maven Central it seems jaxb-core
is a underlying (shared) dependency of jaxb-impl
, jaxb-xjc
and jaxb-jxc
); thus you would require jaxb-core
to work with 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>
<!-- ... -->
<!-- ... -->
Upvotes: 0