首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jaxb-core和jaxb-impl有什么区别?

jaxb-core和jaxb-impl有什么区别?
EN

Stack Overflow用户
提问于 2016-09-27 22:25:21
回答 1查看 2.7K关注 0票数 20

在什么情况下,我需要在jaxb-impljaxb-core之间做出选择?在我的项目中同时使用jaxb-impljaxb-core会导致任何类加载冲突?

EN

回答 1

Stack Overflow用户

发布于 2022-10-28 16:30:54

如果使用Maven Central中的com.sun.xml.bind构件,那么jaxb-core似乎是jaxb-impljaxb-xjcjaxb-jxc的底层(共享)依赖;因此,需要 jaxb-core来使用jaxb-impl

代码语言:javascript
复制
<!-- 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>
    <!-- ... -->
<!-- ... --->
代码语言:javascript
复制
<!-- 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>
    <!-- ... -->
<!-- ... -->
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39735265

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档