You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @gnodet, I noticed the compatibility regression mentioned in the latest review regarding settings profiles and activeByDefault. I'd be interested in contributing the suggested fix along with a regression test. Would you prefer me to prepare this as a separate contribution, or would you like to address it in the existing PR?
Hi @codewithsinchana, the fix is already applied — no separate contribution needed!
PR #12377 has just been rebased onto master and now includes:
Removal of getSource()/setSource() from the 4.2.0+ API model — POM vs settings profiles are now distinguished via InputSource.getModelId() (non-empty = POM, empty/null = settings)
Compat-layer fix — SettingsUtils.convertFromSettingsProfile() now explicitly calls result.setSource(Profile.SOURCE_SETTINGS), preserving correct activeByDefault behaviour for settings profiles in the deprecated compat DefaultProfileSelector
Updated ConditionProfileActivator and PropertyProfileActivator — these also used Profile.SOURCE_POM.equals(profile.getSource()) for cascaded property lookups and are now using the InputSource.getModelId()-based check consistently
Merged test suite — cascading activation tests and new isFromPom()/activeByDefault regression tests (the scenario from your analysis) are both included
Your PR #13854 helped surface the compat-layer regression clearly, thank you!
Activity
vijaykriishna commentedon Nov 8, 2025
[apache#2569] Remove Profile getSource/setSource remnants from Maven 3
[apache#2569] Remove Profile getSource/setSource for model version 4.2.0
[apache#2569] Fix isFromPom to handle empty modelId from settings pro…
[apache#2569] Add tests for POM vs settings profile detection in Defa…
codewithsinchana commentedon Nov 5, 2026
Hi @gnodet, I noticed the compatibility regression mentioned in the latest review regarding settings profiles and
activeByDefault. I'd be interested in contributing the suggested fix along with a regression test. Would you prefer me to prepare this as a separate contribution, or would you like to address it in the existing PR?[apache#2569] Remove Profile getSource/setSource for model version 4.2.0
[apache#2569] Fix isFromPom to handle empty modelId from settings pro…
[apache#2569] Add tests for POM vs settings profile detection in Defa…
[apache#2569] Fix compat-layer regression and remaining isFromPom usages
gnodet commentedon Nov 5, 2026
Hi @codewithsinchana, the fix is already applied — no separate contribution needed!
PR #12377 has just been rebased onto master and now includes:
getSource()/setSource()from the 4.2.0+ API model — POM vs settings profiles are now distinguished viaInputSource.getModelId()(non-empty = POM, empty/null = settings)SettingsUtils.convertFromSettingsProfile()now explicitly callsresult.setSource(Profile.SOURCE_SETTINGS), preserving correctactiveByDefaultbehaviour for settings profiles in the deprecated compatDefaultProfileSelectorConditionProfileActivatorandPropertyProfileActivator— these also usedProfile.SOURCE_POM.equals(profile.getSource())for cascaded property lookups and are now using theInputSource.getModelId()-based check consistentlyisFromPom()/activeByDefaultregression tests (the scenario from your analysis) are both includedYour PR #13854 helped surface the compat-layer regression clearly, thank you!
[apache#2569] Fix compat-layer regression and remaining isFromPom usages
[apache#2569] Remove Profile getSource / setSource
Remove Profile getSource / setSource (#12377)