xml-apis中的maven依赖树编译问题

use*_*650 5 java hibernate maven

我在 maven 项目中使用 hibernate 4.3.0。当我尝试运行 mvn dependency:tree 时,它​​显示 dom4j 中 xml-apis.jar 的编译问题。

[信息] | +- dom4j:dom4j:jar:1.6.1:编译
[信息] | | - xml-apis:xml-apis:jar:1.0.b2:编译

如果我像下面这样从 hibarate-core 中排除 xml-apis jar,这个问题就得到解决。

<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>4.3.0.Final</version>
        <exclusions>
            <exclusion>
                <artifactId>xml-apis</artifactId>
                <groupId>xml-apis</groupId>
            </exclusion>
        </exclusions>
</dependency>
Run Code Online (Sandbox Code Playgroud)

有没有办法解决这个问题而不排除 hibernate-core 中的 jar ?