-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Compatibility with Jaxb xjc v3.0.0 #66
Comments
There have been few reports recently concerning the need to upgrade to xjc 3.0. Honestly, I have currently no time for that, so no promises at the moment. |
I understand ... I don't know if it is a complex stuff to do or just cumbersome work ;) I'd like to help to I think a need a help to bootstrap me to the project. If a new comer to the project can do it, I can be the guy but I think I need a bit of help from you ;) |
Hi there, in https://github.com/thetric/jaxb-xew-plugin I have migrated this plugin to Jakarta EE. This are the major changes:
|
Cool. I really appreciate what you do within this ticket! I hope to find a minute and merge it to master. |
Hi @thetric, in response to your use of mcbluna fork of the JAXB basics tooling, can you please only use libraries published to Maven Central? Personal repositories are not assessed for vulnerabilities and many organisations have blocking security rules to protect their supply chain hence making this plugin unusable. |
Yes, I understand your concern. The problem is that I was not able to find any other version of
What option do you prefer? Or do you see an alternative way to solve this problem? |
@thetric we could ship in and help Aleksei, the author of the JAXB Commons libraries to make them work with JAXB 3. There are a number of PRs and issues that people have clocked up over there already. Forking snippets and then not properly releasing them through a well known channel is not going to help anyone that already uses this plugin nor the poor chaps that start out fresh and fall into the many potholes of JAXB. highsource/jaxb2-basics#118 Edit: consider what happens when someone tries to use this plugin with maven-jaxb2-plugin and now you have 2 separate JARs in the maven plugin classpath that both have the same package names but one is wired to use Jakarta and the other one the old Sun APIs. |
To me it didn't looked like there was a new release of any of these libraries planned. Both pull requests have been merged over a year ago without resulting in new releases. Their latest releases are 3 years old. Thus I had chosen to refactored to remove the dependency on jaxb2-basics:
I am unsure on how we can help the maintainers to cut a new release, the necessary changes to ensure compatibility with Jakarta seem to have already landed. So, how do you suggest to support them? |
I think we can break the dependency on |
I guess this is okay because
I have volunteered for this change because we are using this plugin with other tooling at work. This would enable us to finally migrate to Java 17.
@dmak Would you still like to review my PR? |
any news about this issue ? |
When will this be merged? @thetric Can you release this version with jaxb 3.0 support? |
Let's push this PR to the end: merge PR, make a release and push it to Maven. |
@dmak Jakarta took over the development of the xml libraries that were originally developed by Sun. With that comes a new group name and the jaxb-impl has been renamed to jaxb-runtime. Jakarta is currently on JAXB 4.0 right now and many major frameworks have migrated their code base to Jakarta. Wildfly by Jboss and Spring Boot for example. If it is possible then please upgrade this maven plugin to JAXB 4.0 but 3.0 is fine for now. |
Thanks for information, @plebcity. I still have a mess why JAXB runtime is under GlassFish umbrella. |
My bad, the jaxb-impl also has a 4.0.1 version. So you could either use the Sun jaxb-impl or Glassfish jaxb-runtime. According to this answer there is a slight difference in packaging. https://stackoverflow.com/a/72151763/3487046 |
Nope, I'm using IntelliJ. But I'm totally fine with your branch |
OK gents, then I merge my branch to master, please don't pull master as probably I would need to force push to it a couple of times if release fails (quite a time had passed since I run it last time). Also I will try to setup CI via GitHub actions (just a trivial build). |
New and shiny v2.0 of Xew plugin has been uploaded to Nexus. Happy testing! |
Hi there (@dmak / @thetric), I'll try to ping you when done |
@laurentschoelens Thanks for update. There is no direct dependency on |
Hi @dmak We finally get v3 and v4 jaxb-tools based on jaxb3 and jaxb4. Regards |
Hi,
I have a kotlin ktor project that generates code from xsd using jaxb xjc. I have a few plugin such as xew. I have upgraded xjc today to version 3.0.0.
And after the upgrade, I have an issue in the plugin xew (please find bellow the stacktrace).
Obviously if I downgrade back to xjc 2.3.3, there is no issue during the build.
Do you plan to upgrade the plugin to support xjc 3.0.0 ?
This is an extract of my
build.gradle.kts
The text was updated successfully, but these errors were encountered: