I have a CommonTypes.xsd which I\'m including in my all other XSDs using xs:include. I get
Multiple are defined for the target namesp
Yeah, there is a way.
Assuming:
xsd/common/common.xsd
xsd/foo/foo.xsd
In the common directory place common.xjb:
In the foo directory place foo.xjb:
In the build.xml file, create one xjc task for each:
You need to make sure that common.xsd has a targetNameSpace that is different from foo.xsd's targetNameSpace.