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

   The root cause was that ModelBuilderResult.getActivePomProfiles()
   returned all active profiles as a flat list without tracking which
   model each profile came from.
   
   This commit:
   - Adds getActivePomProfiles(String modelId) and
     getActivePomProfilesByModel() methods to ModelBuilderResult API
     to track profiles per model like Maven 3 did
   - Updates DefaultModelBuilder to track model IDs when adding profiles,
     using ModelProblemUtils.toId() to get groupId:artifactId:version
     format (without packaging) to match Maven 3 behavior
   - Updates DefaultProjectBuilder to use the new per-model profile
     tracking API to correctly set injected profile IDs
   - Adds integration test MavenITgh11409ProfileSourceTest to verify
     the fix and prevent regression
   
   Profile sources now correctly show groupId:artifactId:version format,
   matching Maven 3 behavior.
   
   Fixes #11409
   


-- 
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