Open oliverunger opened 10 months ago
I faced the same issue. The following schema changes solved my issue:
xmlns:jaxb="http//java.sun.com/xml/ns/jaxb"
to xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb"
jaxb:version=2.0
to jaxb:version=3.0
@tstuber Does not change anything for me
@oliverunger I have similar issue, it looks like this is the default behaviour of xjc
(if I am wrong here, please correct me).
You can still configure xjc
to generate enums through binding configuration (general info). Maybe this post would be helpful?
I have the following snippet in my xsd file. I would expect that it generates a Java Enum with the two elements STANDALONE and CONNECTED.
I'm using jaxb2-maven-plugin version 3.1.0