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/05/18 05:58:46 UTC

[PR] [maven-4.0.x] Upgrade plugin dependencies (extra-enforcer-rules) in mvnup [maven]

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

   Backport of #12051 to `maven-4.0.x`.
   
   ## Summary
   
   Adds support for upgrading plugin dependencies in `mvnup`, specifically `org.codehaus.mojo:extra-enforcer-rules` to minimum version 1.4 for Maven 4 compatibility.
   
   ## Problem
   
   `extra-enforcer-rules` versions before 1.4 use `DependencyGraphBuilder.buildDependencyGraph(MavenProject, ArtifactFilter)` — a method removed in Maven 4. This causes `NoSuchMethodError` at runtime when rules like `BanCircularDependencies` are executed.
   
   Found during maven4-testing across ~960 Apache repositories (e.g., rocketmq uses `extra-enforcer-rules:1.0-beta-4`).
   
   ## Changes
   
   - `PluginUpgradeStrategy`: Added `PLUGIN_DEPENDENCY_UPGRADES` list and `upgradePluginDependencies()` method
   - Added 2 tests for plugin dependency upgrades
   
   _Claude Code on behalf of Guillaume Nodet_


-- 
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] [maven-4.0.x] Upgrade plugin dependencies (extra-enforcer-rules) in mvnup [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on PR #12071:
URL: https://github.com/apache/maven/pull/12071#issuecomment-4488784126

   _Claude Code on behalf of Guillaume Nodet_
   
   Closing this PR — the branch conflicts with the domtrip migration (#12082). Reopening as a new PR with the cherry-picked squash commit from the merged master PR #12051.


-- 
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] [maven-4.0.x] Upgrade plugin dependencies (extra-enforcer-rules) in mvnup [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed pull request #12071: [maven-4.0.x] Upgrade plugin dependencies (extra-enforcer-rules) in mvnup
URL: https://github.com/apache/maven/pull/12071


-- 
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