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/09/02 12:04:03 UTC

[PR] [MNG-8765] Pre-interpolate plugin configuration before type conversion (backport to 4.0.x) [maven]

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

   ## Summary
   
   Backport of #12686 to `maven-4.0.x`.
   
   - Pre-interpolate plugin configuration XML before the `ComponentConfigurator` performs type conversion, resolving `${...}` property references that were set dynamically at runtime (e.g. by Groovy/GMaven scripts via `project.getProperties().setProperty()`).
   - Without this fix, URI-typed plugin parameters containing unresolved `${...}` fail with `URISyntaxException` because type converters parse the raw string before properties are resolved.
   - Rebuilds the immutable `XmlNode` tree bottom-up with interpolated values using `XmlNode.newBuilder()`.
   - Only interpolates runtime-only properties — model-time properties (POM, `-D`, system) are skipped to preserve MNG-3558 property escaping.
   - Applied to both `loadV3Mojo` and `loadV4Mojo` paths.
   
   ## Test plan
   
   - [x] `MavenITmng8765UriPropertyInterpolationTest` — 3 tests (POM property, CLI property, runtime property)
   - [x] MNG-3558 property escaping test still passes
   - [x] CI passed on master (#12686)
   
   🤖 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] [MNG-8765] Pre-interpolate plugin configuration before type conversion (backport to 4.0.x) [maven]

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


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