These dependecies are causing an error to cxf-codegen-plugin, error that i am seeing is
org.apache.xerche.dom.DeferredDocumentTypeImpl cannot be cast to org.w3c.dom.Element
Is there a way i can have both(the dependencies and the plugin) in the same POM file and make it work?
Did you try running mvn with -X to see if that gave you any more information?
Are you certain that you don't have a stray JAR file containing one of those two classes? You can add "-verbose:class" to MVN_OPTS, that would cause the JVM to print the JAR for every class loaded. That would let you know if you have any stray JAR files. (Make sure you don't set CLASSPATH!)