Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: 1.2
-
Fix Version/s: None
-
Component/s: Ant task, Maven archetypes
-
Labels:None
-
Environment:Windows XP, Java 5.0
Description
Hi,
When we try to generate the class file for a XSD containing nested elements of type complex, it is generating a separate class for the same instead of using the class generated for that particular complex type.
For instance in the attached "address.xsd" we have a complex type called Address, which in turn uses City defined in another schema "city.xsd". But castor tries to generate two different classes for the "City", one for in address.xsd and another for city.xsd.
We are using Castor maven plug-in 1.5 for code generation.
Could you please let us know is there any change in the configuration for the maven plug-in 1.0, as this works fine with that version.
PS: Same behavior is observed while using castor ant task of 1.3.
Regards,
Sundeep
If you want me to have a look at this, please provide XML schemas that do not have references to XML schemas not relevant for this issue.