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

…e#11196)

Changes to \ in profiles do not propagate to the final project version.
This issue occurs because CI-friendly version processing happens before profile
activation, so profile properties are not available during version resolution.

This commit implements enhanced property resolution that performs lightweight
profile activation during CI-friendly version processing to ensure profile
properties are available for both version resolution and repository URL
interpolation.

Key changes:
- Enhanced CI-friendly version processing with profile-aware property resolution
- Unified property resolution for both CI-friendly versions and repository URLs
- Added directory properties (basedir, rootDirectory) to profile activation context
- Comprehensive test coverage for profile-based CI-friendly versions

The solution maintains full backward compatibility while enabling profile-based
version manipulation that was possible in Maven 3 but broken in Maven 4.

Fixes apache#11196

(cherry picked from commit 02de10f)
@gnodet gnodet added bug Something isn't working backport labels Oct 8, 2025
@gnodet gnodet merged commit 0feb6f8 into apache:maven-4.0.x Oct 9, 2025
37 of 38 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