Hello, I'm trying to use
<xsdOption> <xsd>classpath:/org/foo/bar.xsd</xsd> with cxf-xjc-plugin version 2.3.0 and it fails with $ mvn -X install ... [DEBUG] (f) sourceRoot = /Users/xxx/working/foo-trunk/module/target/generated/src/main/java [DEBUG] (s) xsd = classpath:/org/foo/bar.xsd [DEBUG] (s) packagename = org.foo.bar [DEBUG] (s) xsd = classpath:/org/foo/baz.xsd [DEBUG] (s) packagename = org.foo.baz [DEBUG] (f) xsdOptions = [org.apache.cxf.maven_plugin.XsdOption@4bc2d25e, org.apache.cxf.maven_plugin.XsdOption@6381402d] [DEBUG] -- end configuration -- parsing a schema... [ERROR] schema_reference.4: Failed to read schema document 'file:/Users/xxx/working/foo-trunk/module/classpath:/org/foo/bar.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. unknown location which is incorrectly interpreting classpath:/ as part of a file:/ URI. The code in this commit from 2010 looks reasonable, if that is what is in version 2.3.0 http://cxf.547215.n5.nabble.com/svn-commit-r956592-cxf-xjc-utils-trunk-cxf-xjc-plugin-src-main-java-org-apache-cxf-maven-plugin-Absta-td579646.html michael
