我有一个带有两个子模块的Maven项目,每个模块都依赖于xerces2.8.1(对于带有cxf的wsdl2java).如果我单独构建子模块,它会成功构建.
如果我从根模块构建,在构建第二个子模块时,它会失败并出现以下异常
[INFO] org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apach
e.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
Run Code Online (Sandbox Code Playgroud)
以前有人遇到过这个吗?
谢谢Vijay
Rug*_*ggs 38
您需要在插件配置中添加以下内容:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<dependencies>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.8.1</version>
</dependency>
</dependencies>
...
</plugin>
Run Code Online (Sandbox Code Playgroud)
之后它应该工作.
| 归档时间: |
|
| 查看次数: |
8186 次 |
| 最近记录: |