Hi Lyuben,
We have the same element name in different namespaces (with different restrictions), but that confuses the JAXB compiler.
There is no binding yet for record_2.0 (we created our 2.0 classes by hand, based on the previous version of the classes).
I've attached a first attempt at a binding file, which puts classes in different namespaces into their own packages.
There are still some conflicts (which I will investigate, and hopefully clean up in the future). However, you can work around them for now, using -XautoNameResolution.
xjc -extension -d src/main/java -b src/main/resources/record_2.0/jaxb-binding-separate-packages.xjb -XautoNameResolution src/main/resources/record_2.0/record-2.0.xsd
Can you try with that binding file, or create your own?
We can maybe add the binding to the ORCID-Source repo, if it works for you. If not, you could fork the repo and submit your binding file as a pull request.
Best regards,
Will