-
Notifications
You must be signed in to change notification settings - Fork 99
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
jaxb-maven-plugin > 4.0.0 doesn’t mention “Jakarta XML Binding” anymore in Javadoc #547
Comments
Hi @yvanzo Could you tell me one file generated where I can spot the difference ? One suggestion regarding your |
See for example those two lines: https://github.com/metabrainz/mmd-schema/blob/61108f9cc220d4561154244715a886b7ceabb0a1/brainz-mmd2-jaxb/src/main/java/org/musicbrainz/mmd2/AliasList.java#L62-L63
No particular reason AFAIK but I’m not the original author either. |
Thanks for pointing me the list The problem came from jaxb-ri change here : eclipse-ee4j/jaxb-ri@7188568
Generating java code from XSD in So each time your config change, you'll have to commit generated files also. By default, generated files goes into It depends of your use-case |
PR done in jaxb-ri to fix javadoc reference and restore the |
In our case, we have to patch some of the generated Java source files through a script, so we cannot just use Maven, which is very unfortunate indeed. |
@yvanzo I suggest executing the script that does class patching as a Maven step after the generated classes are processed. This way, the classes still remain in target/generated-sources and the script execution is tied to the Maven lifecycle which would be best practice. Checkout the exec-maven-plugin to run the script you have now, or consider converting the changes to be done via Java. |
I tried to update
jaxb-maven-plugin
version from 4.0.0 to a more recent version (4.0.2, 4.0.3, 4.0.6) and noticed that the generated Javadoc comments are mentioning “JAXB” again instead of “Jakarta XML Binding”.For the
pom.xml
, please see https://github.com/metabrainz/mmd-schema/tree/61108f9cc220d4561154244715a886b7ceabb0a1/brainz-mmd2-jaxbI’m just reporting this curiosity in case it might be revealing a deeper regression, possibly related to the issue #545.
The text was updated successfully, but these errors were encountered: