-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify plugin error -- Unable to honor this as-element-property customization. It is attached to a wrong place, or its inconsistent with other bindings. #133
Comments
I am seeing this without using class references too- when we are using the annotation on choice rather than on complexType, and two or more elements in the parent type share a type, so like e.g. this worked:
but this did not:
However, in that case it seemed like annotating the type element instead of choice did work:
|
According to the documentation one of the The same to the bindings file:
|
Hi @Ceshion / @imitbn / @AddisonSnyder / @siarheul @imitbn : I guess you're right, you can only customize an In addition, jaxb2-basics have moved to jaxb-tools repository (former maven-jaxb2-plugin) and jakarta is on it's way. If documentation is not clear enough, please let me know so we can fix it there. Also @everyone : if you have any problems regarding this plugin usage, feel free also to post a project sample to illustrate. Regards |
Hello!
I try to generate JAXB sources from the XSD schema
My JAXB generated sources contain infamous 'fooOrBarOrBaz' looking property. In my case it is 'actualRemoteSectorIndexOrActualLocalSectorIndexOrRemoteMacAddr' property. In order to get rid of it I try to use 'simplify' plugin.
Unfortunately, I can't make it work. What is get is an error
This is my XSD:
This is my XJB file:
This is my pom.xml file:
The text was updated successfully, but these errors were encountered: