jrduncans wrote:
>
> I tried to update a Maven project from 2.0.2 to 2.0.3. After updating the
> versions in my pom.xml, I get the following error:
>
> WSDLToJava Error : WSDLException (at
> /wsdl:definitions/wsdl:types/xsd:schema): faultCode=OTHER_ERROR: Unable to
> locate with a locator the schema referenced at 'DDMS-v1_3-JFCOM.xsd'
> relative to document base 'file:src/main/wsdl/Flight.wsdl'
>
> I verified that it's using the project root as the basedir, rather than
> src/main/wsdl like it claims, by copying the imported schema files to the
> project root. At that point, the build passes.
>
> This doesn't sound quite the same as the discussion on:
> http://issues.apache.org/jira/browse/CXF-1140
>
> Perhaps it's only applicable to the Maven plugin?
>
> Any ideas? Should I enter a new bug?
>
> Thanks,
> Stephen Duncan Jr
>
Ok, so adding ${basedir} to the WSDL paths fixes this problem. It's also
necessary, even in 2.0.2 in order for the build to work as part of a
multi-module project.
--
View this message in context:
http://www.nabble.com/Problem-with-relative-path-schema-import-using-Maven-wsdl2java-in-2.0.3-tp14957138p15000581.html
Sent from the cxf-user mailing list archive at Nabble.com.