Skip to content

Upgrade more plugins in mvnup PluginUpgradeStrategy#12119

Merged
gnodet merged 1 commit into
apache:masterfrom
gnodet:mvnup-upgrade-plugins
May 20, 2026
Merged

Upgrade more plugins in mvnup PluginUpgradeStrategy#12119
gnodet merged 1 commit into
apache:masterfrom
gnodet:mvnup-upgrade-plugins

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented May 20, 2026

Summary

  • Raise enforcer plugin minimum from 3.0.0 to 3.5.2 — versions before 3.5.2 use the removed PluginParameterExpressionEvaluator 6-arg constructor, causing NoSuchMethodError on Maven 4
  • Add net.alchim31.maven:scala-maven-plugin with minimum 4.9.2 — older versions call .add() on immutable lists returned by Maven 4 API
  • Add org.apache.maven.plugins:maven-resources-plugin with minimum 3.3.1 — beta/RC versions compiled against different Maven 4 API signatures

These changes fix ~10 repos in the Maven 4 compatibility test suite (gnodet/maven4-testing).

Test plan

  • All 27 PluginUpgradeStrategyTest tests pass
  • Run maven4-testing suite with updated Maven build

Claude Code on behalf of Guillaume Nodet

🤖 Generated with Claude Code

Upgrade maven-enforcer-plugin minimum from 3.0.0 to 3.5.2 because
versions before 3.5.2 use the removed PluginParameterExpressionEvaluator
6-arg constructor, causing NoSuchMethodError with Maven 4.

Add new plugin upgrades for Maven 4 compatibility:
- net.alchim31.maven:scala-maven-plugin minimum 4.9.2 (older versions
  call add() on immutable lists returned by Maven 4 API)
- maven-resources-plugin minimum 3.3.1 (beta/RC versions compiled
  against different Maven 4 API signatures)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet marked this pull request as ready for review May 20, 2026 04:30
@gnodet gnodet merged commit bbc4aaf into apache:master May 20, 2026
22 checks passed
@github-actions
Copy link
Copy Markdown

@gnodet Please assign appropriate label to PR according to the type of change.

@github-actions github-actions Bot added this to the 4.1.0 milestone May 20, 2026
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.

3 participants