Repository navigation
Migrate JAXB toolchain from javax.xml.bind to jakarta.xml.bind - #273
Merged
Merged
Conversation
The generate-code-from-xsd XJC codegen module (and the root POM's shared JAXB dependency management) was still on the old javax namespace via the unmaintained maven-jaxb2-plugin/jaxb2-basics stack. Switch to the actively maintained Jakarta-namespace continuation (org.jvnet.jaxb:jaxb-maven-plugin/jaxb-plugins, jakarta.xml.bind-api, jaxb-runtime 4.x), so generated sources now import jakarta.xml.bind.* instead of javax.xml.bind.*. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018NNn2dWEkf6R3BxjXhw7tJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xml/jaxb/generate-code-from-xsdXJC codegen module (and the root POM's shared JAXB dependency management) was still on the oldjavax.xml.bindnamespace, via the unmaintainedorg.jvnet.jaxb2.maven2:maven-jaxb2-plugin/jaxb2-basics/jaxb2-rich-contract-pluginstack.org.jvnet.jaxb:jaxb-maven-plugin/jaxb-plugins(4.0.16),jakarta.xml.bind:jakarta.xml.bind-api(4.0.5),org.glassfish.jaxb:jaxb-runtime(4.0.9),net.codesup.util:jaxb-rich-contract-plugin(4.2.1.2), plus a pinnedjakarta.activation:jakarta.activation-api(2.1.4) to satisfy dependency convergence.jakarta.xml.bind.*instead ofjavax.xml.bind.*.org.codehaus.mojo:jaxb2-maven-pluginpluginManagement entry while touching this file.Test plan
mvn -pl xml/jaxb/generate-code-from-xsd -am verify— codegen, compile, andGeneratedCodeTestpasstarget/generated-sources/xjcimportjakarta.xml.bind.*with zerojavax.xml.bindreferencesmvn verifyat repo root — all modules build and all tests pass🤖 Generated with Claude Code
https://claude.ai/code/session_018NNn2dWEkf6R3BxjXhw7tJ