Here’s my problem:
I have two .xsd files, let’s call them a.xsd and b.xsd. What I want to achieve is to generate all the classes from a.xsd excluding the classes in b.xsd. Now the problem is, that a.xsd references a type in b.xsd (via a ), so even when excluded, the classes in b.xsd get build. Is there some way around this?
You can’t exclude a schema, but you can exclude a schema-derived package.
Please see Ignoring packages:
Since you actually have a reference to a type from
b.xsdsomewhere ina.xsdyou will need to break this reference. You can either ignore this property usinghj:ignoredor customize it withxjc:domto make it a DOM element in the Java class.ps. I’m responding to
users@hyperjaxb.java.netfaster than to questions on SO.