Skip to content

[Backport 4.0.x] [#12288] Pass settings.xml profile properties to LRM#12299

Merged
gnodet merged 2 commits into
maven-4.0.xfrom
gnodet/cherry-pick-12297-to-4.0.x
Jun 18, 2026
Merged

[Backport 4.0.x] [#12288] Pass settings.xml profile properties to LRM#12299
gnodet merged 2 commits into
maven-4.0.xfrom
gnodet/cherry-pick-12297-to-4.0.x

Conversation

@gnodet

@gnodet gnodet commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Backport of #12297 to maven-4.0.x.

Fixes #12288 on the 4.0.x branch.

Co-authored-by: Gerd Aschemann gerd@aschemann.net

Fixes #12288. Supersedes #12291.

Profiles activated through settings.xml (<activeProfiles> or
<activation><activeByDefault>true</activeByDefault>) had their
<properties> block dropped before the resolver session was built, so
aether.* configuration declared in such a profile silently failed.

Changes:
- Collect activeByDefault profiles for property propagation to LRM
- Respect -P !profileId deactivation for activeByDefault profiles
- Add ITs for both settings.xml activation channels

Co-authored-by: Gerd Aschemann <gerd@aschemann.net>
@gnodet gnodet added this to the 4.0.0-rc-6 milestone Jun 17, 2026
@gnodet gnodet added bug Something isn't working backport-to-4.0.x labels Jun 17, 2026
AbstractMavenIntegrationTestCase on 4.0.x requires a version range
string — no no-arg constructor exists (unlike master).
@gnodet gnodet merged commit 50c1b17 into maven-4.0.x Jun 18, 2026
23 checks passed
@gnodet gnodet deleted the gnodet/cherry-pick-12297-to-4.0.x branch June 18, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-4.0.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant