Skip to content

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Oct 8, 2025

Backport

This will backport the following commits from master to maven-4.0.x:

Questions ?

Please refer to the Backport tool documentation

This commit implements automatic phase name upgrades when upgrading
Maven projects from model version 4.0.0 to 4.1.0. The deprecated
Maven 3 phase names are automatically converted to their Maven 4
equivalents:

- pre-clean → before:clean
- post-clean → after:clean
- pre-integration-test → before:integration-test
- post-integration-test → after:integration-test
- pre-site → before:site
- post-site → after:site

The upgrade functionality:
- Only applies when upgrading to model version 4.1.0 or higher
- Processes all plugin executions in build/plugins, build/pluginManagement,
  and profile/build/plugins sections
- Preserves non-deprecated phase names unchanged
- Includes comprehensive test coverage for all scenarios

This enhancement ensures that Maven projects upgrading to 4.1.0 will
automatically have their deprecated phase references updated to use
the new Maven 4 phase naming convention.

(cherry picked from commit 3660924)
@gnodet gnodet force-pushed the backport/maven-4.0.x/pr-11215 branch from 749ba9b to 1ff492c Compare October 8, 2025 21:16
@gnodet gnodet added bug Something isn't working backport labels Oct 8, 2025
@gnodet gnodet merged commit 897a8b6 into apache:maven-4.0.x Oct 9, 2025
19 checks passed
@github-actions github-actions bot added this to the 4.0.0 milestone Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant