Hello Dan, Thank you for the reply.
I'm going off the documentation at http://cxf.apache.org/cxf-xjc-plugin.html which uses classpath references everywhere, e.g. <xsd>classpath:/schemas/wsdl/http.xsd</xsd>. The commit I mentioned below was made by you https://fisheye6.atlassian.com/changelog/cxf?cs=956592 and the relevant changes are still present in the latest revision https://fisheye6.atlassian.com/browse/cxf/xjc-utils/trunk/cxf-xjc-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractXSDToJavaMojo.java?r=1056600 michael On Thu, Aug 23, 2012 at 1:28 PM, Daniel Kulp <[email protected]> wrote: > > I really don't think the xic plugin supports the classpath: thing as it's not > based on any of the CXF internal code that would handle that. I think it > would require the correct file path. > > Dan > > > > On Aug 22, 2012, at 1:26 PM, Michael Heuer <[email protected]> wrote: > >> 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 > > -- > Daniel Kulp > [email protected] - http://dankulp.com/blog > Talend Community Coder - http://coders.talend.com >
