gnodet opened a new pull request, #12051: URL: https://github.com/apache/maven/pull/12051
## Summary - Adds support for upgrading plugin dependencies (not just plugin versions) in `mvnup` - Specifically upgrades `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](https://github.com/gnodet/maven4-testing/issues/10554) uses `extra-enforcer-rules:1.0-beta-4`). Version 1.4 switched to `buildDependencyGraph(ProjectBuildingRequest, ArtifactFilter)` which is compatible with Maven 4. ## Changes - `PluginUpgradeStrategy`: Added `PLUGIN_DEPENDENCY_UPGRADES` list and `upgradePluginDependencies()` method that checks `<dependencies>` inside `<plugin>` elements - Reuses existing `upgradePluginVersion()` for version comparison and property handling - Added 2 tests for the new functionality ## Test plan - [x] Existing tests pass (19/19) - [x] New tests pass (2 new, 21 total) - Upgrades `extra-enforcer-rules:1.0-beta-4` to `1.4` - Preserves `extra-enforcer-rules:1.8.0` (already sufficient) _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]
