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

   <!--
   Please open pull requests against one of the following branches:
   
   - master — default target for all changes (new features + bug fixes).
     If the change should also go to maven-4.0.x, request a backport in the PR.
   
   - maven-3.10.x — target for 3.x changes (new features + bug fixes).
     If the change should also go to maven-3.9.x, request a backport in the PR.
     maven-3.9.x should receive only serious bug fixes, as it is approaching 
EOL.
   
   Backports are typically handled by maintainers;
   however, after agreement you may open a separate backport PR to the target 
maintenance branch.
   -->
   
   <!-- Add your description here... what, why and how you resolve the issue -->
   
   Fixes #13809.
   
   When a reactor module reads its parent POM, repositories from that POM's 
active profiles are unavailable while resolving its own parent. This causes 
reactor builds to fail even though the root-only build succeeds.
   
   Use a profile-injected model for parent resolution, keeping the raw model 
for final inheritance and profile injection. Existing activation restrictions 
and repository merging remain unchanged.
   
   Regression tests cover explicit and property activation, nonrecursive 
builds, inactive profiles, repository URL interpolation, parent cache reuse and 
external-model activation restrictions.
   
   ### Validation
   
   - Reproduced with a fresh cache: Maven 3.9.16 succeeds; unchanged Maven 
4.2.0-SNAPSHOT fails; the fix succeeds.
   - Unit suite: 3,845 cases, no failures or errors, 16 skipped.
   - Core IT suite: 1,098 cases, no assertion failures, three missing-artifact 
errors, 42 skipped. After installing the built test artifacts locally, all 12 
affected and adjacent cases passed on rerun.
   - Changed-file Spotless checks and `git diff --check` pass.
   
   Backport requested for `maven-4.0.x`.
   
   ---
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to