-
Notifications
You must be signed in to change notification settings - Fork 98
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Choice between bindings and episodes? #131
Comments
After doing some digging:
|
|
I have a dependency on a project 'A'.
A defines custom bindings in an .xjb file.
I would like to use the dependency A as both a source of bindings and as an episode file.
It seems like I can't do that.
If I depend on A purely as an episode then everything works but A's bindings are lost. The result is classes are generated with properties in the native JAXB types (eg XMLGregorianCalendar).
If I depend on A purely as a binding then A's bindings get picked up but A's classes will be re-generated into my target/generated-sources/xjc directory.
If I try to depend on A as both a binding and an episode then I get nasty errors of the form:
So it finds the binding in the xjb file and then it finds another bindings in the sun-jaxb.episode and it blows up.
Am I doing something wrong?
Is it not okay to have a dependency that provides custom bindings and acts as an episode dependency?
(This is all open source so I can provide links if necessary.)
The text was updated successfully, but these errors were encountered: