I have Maven project with two sub-modules , each module has dependency with xerces2.8.1(for wsdl2java with cxf) . If i build the sub-modules seperately it builds successfully.
If i build from root module , while building the second sub-module it fails with below exception
[INFO] org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apach
e.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
Anybody has come across this before?
Thanks Vijay
You need to add the following to the plugin configuration:
<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>
After that it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With