||Understanding JAXB: Java Binding Customization|
|Subject:||How to avoid duplicate bindings in multiple schema files|
Response to: How to avoid duplicate bindings in multiple schema files
I found out through other mailing list that if I specify a package name for xjc, it is applied to schemas imported as well. Using an external binding doesn't resolve this problem. There are a couple of options:
a) Let xjc use derived package name from each schema's target namespace.
b) Use inline binding for each schema file to specify desired package name.