javax.xml.bind.annotation.XmlSchema location property usage

xTRIxEDGEx

New Member
I have two packages (A,B) with objects I want to convert to XSDs.Package B depends on package A.When I run the schemagen on package B I don't want it to generate package A classes again into the package B's XSD.From the the documentation I found you can add the location property to package A javax.xml.bind.annotation.XmlSchema annotation in the package-info.java and then package B won't generate package A classes (and it works well).The problem is that now when running the schemagen tool on package A it won't generate the XSD for package A. Am I supposed to switch package A package-info.java content between runs of schemagen? Any ideas are appreciated.
Thanks in advance,
Avner
 
Back
Top