Hello,
I am facing issued trying to generate Java code from a WSDL file, using the
cxf-codegen-plugin for maven.
The WSDL uses imports for different namespaces, and the referenced schemas also
use imports.
Certain referenced XSD files are not in my project but they are located inside
JAR files.
There are catalogs for all the XSD files. These catalogs can also be stored
inside JAR files.
When generating Java code from the WSDL, maven always complains about
"undefined simple or complex type", for types that are defined in external
schemas.
I cannot find a configuration for the cxf-codegen-plugin that allows me to :
* use several catalogs
* use catalogs inside a JAR file without having to unpack the JAR file
first.
I was hoping to be able to write a configuration like the one for
maven-jaxb2-plugin :
<catalog>sources/my/package/catalog.xml</catalog>
<catalogs>
<catalog>
<dependencyResource>
<groupId>group.id</groupId>
<artifactId>artifact</artifactId>
<version>1.0</version>
<resource>other/package/catalog.xml</resource>
</dependencyResource>
</catalog>
</catalogs>
Or to be able to rely on the maven-jaxb2-plugin to do a part of the job.
How can I proceed to get it work ?
Thanks for any clue,
- Emmanuel
Emmanuel GUITON
Ingénieur Développement
Fixe : +33 1 70 92 84 16 * Standard : +33 1 41 91 77 77
215, Avenue Georges Clemenceau * 92024 Nanterre
[cid:[email protected]]<http://www.intrinsec.com/>
[cid:[email protected]]<http://www.intrinsec.com/>