You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/06/23 20:52:26 UTC

[PR] [Backport 4.0.x][#12353] Add jaxb2-maven-plugin to mvnup plugin upgrade list [maven]

gnodet opened a new pull request, #12356:
URL: https://github.com/apache/maven/pull/12356

   ## Summary
   
   Backport of #12354 to `maven-4.0.x`.
   
   - Add `jaxb2-maven-plugin` (min version 3.2.0) to the mvnup plugin upgrade list
   - `jaxb2-maven-plugin` versions before 3.2.0 depend on `jaxb-parent:3.0.0` which contains `<Xlint:all />` — an element with an undeclared namespace prefix that Maven 4's namespace-aware StAX parser rejects
   - This causes transitive dependencies (`jaxb-core`, `jaxb-impl`) to be lost from the plugin classrealm, resulting in `ClassNotFoundException` at runtime
   - `jaxb-parent:3.0.2` (used by `jaxb2-maven-plugin` 3.2.0+) fixed the invalid XML upstream
   
   ## Test plan
   
   - [x] Added unit test verifying `jaxb2-maven-plugin` 3.1.0 gets upgraded to 3.2.0
   - [x] All `PluginUpgradeStrategyTest` tests pass on `maven-4.0.x`
   - [x] Verified end-to-end: `jaxb2-maven-plugin:3.1.0` fails on Maven 4, `3.2.0` succeeds
   
   Closes #12353
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Backport 4.0.x][#12353] Add jaxb2-maven-plugin to mvnup plugin upgrade list [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #12356:
URL: https://github.com/apache/maven/pull/12356


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org