I'm trying to use JAXB2 2.2 to generate sources from WSDL files. The WSDL files come from a third party and they all define the same common types in addition to a type specific to that WSDL. If I have only one WSDL in the source folder (let's call it A.wsdl), everything works great and the generated sources look like:
A.java
X.java
Y.java
If I clear the output dir and generate with only B.wsdl I get
B.java
X.java
Y.java
I want to be able to put both WSDLs in the source and get
A.java
B.java
X.java
Y.java
I don't care which wsdl X and Y come from, they are identical for all of them. Currently JAXB2 throws org.xml.sax.SAXParseException: 'X' is already defined
and generates nothing. I went through the help output but didn't find any config options that seemed like they would help.