MOXY- Multiple XSDs import the same schema definition- error: 'element' is already defined
问题 I have 3 XSDs linked together: schema1.xsd imports namespace="x:y:z" schemaLocation= "schemaDefinitions.xsd" includes schema2.xsd schema2.xsd imports namespace="x:y:z" schemaLocation= "schemaDefinitions.xsd" includes schema3.xsd schema3.xsd imports namespace="x:y:z" schemaLocation= "schemaDefinitions.xsd" These xsds are provided by an outside source and cannot be changed. Previously my project used standard JAXB with classes created at compile time. I currently am switching to Dynamic JAXB