gnodet opened a new pull request, #12352:
URL: https://github.com/apache/maven/pull/12352
## Summary
Port of #12322 to `master`.
- In `DefaultModelBuilder.doReadFileModel()`, CI-friendly version
interpolation (`${revision}`, `${sha1}`, `${changelist}`) was only performed
inside the `isBuildRequest()` block
- When plugins like `maven-remote-resources-plugin` resolve the project's
own POM through the non-build code path, `${revision}` was left uninterpolated,
causing `Invalid Version Range Request` errors
- Added an `else` branch that performs CI-friendly version interpolation for
non-build requests as well
Fixes #12303
## Test plan
- [x] IT `MavenITgh12303CIFriendlyRevisionRemoteResourcesTest` added
- [ ] Existing CI-friendly version tests still pass
- [ ] No regressions in model builder behavior for build requests
_Fully automatic review from 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]