Skip to content
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

Errors in README #40

Open
jlous opened this issue Nov 19, 2024 · 0 comments
Open

Errors in README #40

jlous opened this issue Nov 19, 2024 · 0 comments

Comments

@jlous
Copy link

jlous commented Nov 19, 2024

I finally got the bindings to work in my kotlin project, after finding and fixing these problems:

  • The example bindings use the "jaxb" prefix but don't define it.
  • There are duplicate bindings for the same xs:-tags
    • this is probably intentional to illustrate alteratives, but in any case:
    • remove all but on of each
  • There is no such thing as java.time.OffsetDate
    • remove the offending line
  • The text says "src/main/bindings/bindings.xml" but the xjc config implies "src/main/xjb/bindings.xjb"
    • choose one and harmonise the other
  • Xml editor complains that "extensionBindingPrefixes" "is not allowed here", whether it is prefixed or not
    • removing the whole attribute seems to work fine
  • bindings need to be under the java source root, so in a kotlin project:
    • add src/main/java and move bindings somewhere in there
    • adjust xjc config accordingly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant