You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/10/15 07:24:28 UTC

[PR] [Backport maven-4.0.x] Fix #10375: activate parent file profiles with the parent's properties [maven]

gnodet opened a new pull request, #13540:
URL: https://github.com/apache/maven/pull/13540

   Backport of #13331 to `maven-4.0.x`.
   
   The cherry-pick conflicted due to the iterative parent-traversal refactor from #13104 not having been backported to `maven-4.0.x` — master uses `ParentModelFrame`/`ParentModelPhase`, while 4.0.x still uses the direct `doReadAsParentModel` method. The fix was applied manually to the equivalent call site.
   
   Changes:
   - `DefaultProfileActivationContext.start(Map)`: new overload that overrides model properties while preserving child's basedir/packaging/artifactId for file-exists checks
   - `replayRecordIntoContext(…, boolean includeModelProperties)`: new overload to exclude parent-derived property lookups from the child's cache key
   - `doReadAsParentModel`: activates parent profiles in a fresh context seeded with the parent's own properties
   - Unit test (`DefaultModelBuilderTest`) and core IT (`MavenITmng8710`) ported
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Backport maven-4.0.x] Fix #10375: activate parent file profiles with the parent's properties [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #13540:
URL: https://github.com/apache/maven/pull/13540


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org