I have a couple of XSDs, one being Domain.xsd. The other XSDs import Domain.xsd. The other XSDs are generated into their own packages. So subsequently JAXB2 generation includes Domain.xsd, which results in duplicate copies of objects in Domain.xsd. Excluding Domain.xsd from the maven generation doesn't work. Is it possible to tell the org.jvnet.jaxb2.maven2 maven-jaxb2-plugin to only generate objects in the explicit XSD and not any imported files?


Reply With Quote
