I am currently using the maven-jaxb plugin to generate Java classes from XML schemas, but I am running into naming collisions in the object factory.
I managed to get around this problem by applying class customizations in the bindings file.
Now, this works perfectly if I am applying the bindings to a ComplexType but if I try apply customizations to a SimpleType XJC gives me the following error :
SAXParseException2: compiler was unable to honor this class customization. It is attached to a wrong place, or its inconsistent with other bindings.