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

   ## Summary
   
   Fixes #12981
   
   - When a Maven extension contributes user properties via the 
`PropertyContributor` SPI (e.g. Nisse's `nisse.jgit.dynamicVersion`), 
`buildPom()` used the raw model (uninterpolated) for the consumer POM
   - Since these properties are not in any POM's `<properties>` section or 
parent chain, they remained as dangling `${...}` references in the 
installed/deployed POM
   - Fix: interpolate version references in `<dependencyManagement>` and 
`<dependencies>` using the effective model's resolved values, similar to how 
`buildBom()` already uses the effective model
   - Reported via 
[maveniverse/nisse#208](https://github.com/maveniverse/nisse/issues/208)
   
   ## Test plan
   
   - [x] 5 new unit tests for `interpolatePomVersions()` covering:
     - Dependency management version interpolation
     - Direct dependency version interpolation
     - Already-resolved versions left unchanged
     - Mixed resolved/unresolved dependencies
     - Empty model handling
   - [x] All 30 `ConsumerPomBuilderTest` tests pass
   
   🤖 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