Skip to content

[maven-4.0.x] Fix #12087: add surefire and failsafe plugins to PluginUpgradeStrategy - #12109

Merged
gnodet merged 2 commits into
apache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-12089-v2
May 19, 2026
Merged

gnodet merged 2 commits into
apache:maven-4.0.xfrom
gnodet:backport/maven-4.0.x/pr-12089-v2

Conversation

@gnodet

@gnodet gnodet commented May 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #12089 (merged to master) — adds surefire and failsafe plugins to the PluginUpgradeStrategy.

Cherry-picked from the squash-merge commit on master onto the current maven-4.0.x branch (post-domtrip migration #12082).

Replaces #12100 which had conflicts after the domtrip migration.

Claude Code on behalf of Guillaume Nodet

…trategy (apache#12089)

Older versions of maven-surefire-plugin and maven-failsafe-plugin
(e.g. 3.1.2) are incompatible with Maven 4, failing with
IllegalStateException in MojoExecutionScopeModule. Add both plugins
with minimum version 3.5.2 so mvnup upgrades them automatically.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet added this to the 4.0.0-rc-6 milestone May 19, 2026
…eStrategyTest

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet
gnodet merged commit 67d297b into apache:maven-4.0.x May 19, 2026
22 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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

@gnodet gnodet added the enhancement New feature or request label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant