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

   ## Backport of #12625
   
   Cherry-pick of #12625 onto `maven-4.0.x`.
   
   **Original PR:** #12625 - Fix BOM consumer POM leaving property references 
unresolved
   **Original author:** @gnodet
   **Target branch:** `maven-4.0.x`
   
   ### Original description
   
   Fixes the BOM consumer POM builder leaving `${...}` property references 
unresolved when consumer POM flattening is disabled (the default).
   
   **Reported by Karl Heinz Marbaise during the [4.0.0-rc-6 
vote](https://lists.apache.org/thread/2s2myrg0zzk0q5z9kjhm8pwsntxmtnxh).**
   
   `DefaultConsumerPomBuilder.buildBomWithoutFlatten()` used `getRawModel()` 
(no interpolation), but then `transformBom()` strips both the parent and 
properties sections. The result is a consumer POM with dangling property 
references that no consumer can resolve.
   
   **Fix:** Route all BOMs through `buildBom()` which uses 
`getEffectiveModel()` (fully interpolated). Delete the now-dead 
`buildBomWithoutFlatten()` method.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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