Skip to content

Migrate JAXB toolchain from javax.xml.bind to jakarta.xml.bind - #273

Merged
svekar merged 1 commit into
masterfrom
jaxb-jakarta-migration
Aug 16, 2026
Merged

svekar merged 1 commit into
masterfrom
jaxb-jakarta-migration

Conversation

@svekar

@svekar svekar commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • The xml/jaxb/generate-code-from-xsd XJC codegen module (and the root POM's shared JAXB dependency management) was still on the old javax.xml.bind namespace, via the unmaintained org.jvnet.jaxb2.maven2:maven-jaxb2-plugin/jaxb2-basics/jaxb2-rich-contract-plugin stack.
  • Switched to the actively maintained Jakarta-namespace continuation: 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 pinned jakarta.activation:jakarta.activation-api (2.1.4) to satisfy dependency convergence.
  • Generated sources now import jakarta.xml.bind.* instead of javax.xml.bind.*.
  • Removed a dead, unused org.codehaus.mojo:jaxb2-maven-plugin pluginManagement entry while touching this file.

Test plan

  • mvn -pl xml/jaxb/generate-code-from-xsd -am verify — codegen, compile, and GeneratedCodeTest pass
  • Confirmed generated sources under target/generated-sources/xjc import jakarta.xml.bind.* with zero javax.xml.bind references
  • mvn verify at repo root — all modules build and all tests pass
  • Checkstyle / PMD / SpotBugs run clean on the module

🤖 Generated with Claude Code

https://claude.ai/code/session_018NNn2dWEkf6R3BxjXhw7tJ

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
@github-actions

Copy link
Copy Markdown

Unit Test Results

18 tests  ±0   18 ✅ ±0   2s ⏱️ ±0s
 6 suites ±0    0 💤 ±0 
 6 files   ±0    0 ❌ ±0 

Results for commit 550a3ac. ± Comparison against base commit cd06dd4.

@svekar
svekar merged commit cc69a39 into master Aug 16, 2026
8 checks passed
@svekar
svekar deleted the jaxb-jakarta-migration branch August 16, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant