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/07/30 11:50:09 UTC

[PR] [backport maven-4.0.x] Fix BOM consumer POM leaving property references unresolved [maven]

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: 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 BOM consumer POM leaving property references unresolved [maven]

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


-- 
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 BOM consumer POM leaving property references unresolved [maven]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #12627:
URL: https://github.com/apache/maven/pull/12627#issuecomment-5132366729

   @gnodet Please assign appropriate label to PR according to the type of change.


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