且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Maven依赖冲突:org.w3c.dom.ElementTraversal

更新时间:2023-11-06 21:01:10

我最终解决了这个问题,但相当令人不满意。修复是将xml-apis标记为父pom的dependencyManagement部分中的运行时作用域。

I have resolved this in the end, but fairly unsatisfactorily. The fix was to mark xml-apis as in the runtime scope in the dependencyManagement section of the parent pom.

我不清楚为什么会这样做(并且在特别是,为什么它工作,而在编译范围中指定依赖项不起作用)。如果有人认为他们可以充分解释,我想知道。

I'm not entirely clear on why this works (and in particular, why it works whereas specifying the dependency as in the compile scope does not work). If anyone thinks they can adequately explain that, I'd like to know.