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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
