Skip to content

[4.0.x] Fix mvnup recommending non-existent maven-enforcer-plugin:3.5.2#12156

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-12155
May 26, 2026
Merged

[4.0.x] Fix mvnup recommending non-existent maven-enforcer-plugin:3.5.2#12156
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-12155

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented May 26, 2026

Summary

Cherry-pick of #12155 to maven-4.0.x.

  • Fixed PluginUpgradeStrategy recommending maven-enforcer-plugin:3.5.2, a version that was never released to Maven Central (versions go 3.5.0 → 3.6.0)
  • The 3.5.2 version was confused with maven-surefire-plugin, which does have a 3.5.2 release
  • Changed the recommended minimum to 3.5.0

Test plan

  • All 27 PluginUpgradeStrategyTest tests pass
  • Verify mvnup apply no longer recommends non-existent enforcer plugin version

🤖 Generated with Claude Code

…he#12155)

The enforcer plugin has no 3.5.2 release (versions go 3.5.0 -> 3.6.0).
The version was confused with maven-surefire-plugin which does have 3.5.2.
Changed the recommended minimum to 3.5.0, which is a real release.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet merged commit d3534a6 into apache:maven-4.0.x May 26, 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.0.0-rc-6 milestone May 26, 2026
gnodet added a commit to gnodet/maven that referenced this pull request May 28, 2026
…he#12155) (apache#12156)

The enforcer plugin has no 3.5.2 release (versions go 3.5.0 -> 3.6.0).
The version was confused with maven-surefire-plugin which does have 3.5.2.
Changed the recommended minimum to 3.5.0, which is a real release.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant