GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: interpolate properties in module/subproject path before filesystem resolution (backport #12734) by gnodet · Pull Request #12924 · apache/maven

Conversation

@gnodet

@gnodet gnodet commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Backport of #12734 to maven-4.0.x.

  • Interpolate ${property} references in <module>/<subproject> paths before filesystem resolution, restoring Maven 3 behaviour
  • Use Interpolator.chain() with correct user → model → system property precedence
  • Add regression integration test for Regression Maven 4 - no property interpolation in module path resolution #12729

Fixes #12729

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@waterWang @gnodet @claude
fix: interpolate properties in module/subproject path before filesyst…
cfe5a89
…em resolution (apache#12734)

* fix: interpolate properties in module/subproject path before filesystem resolution

* fix: address review feedback for module path interpolation

- Fix property lookup precedence: user → model → system (was inverted)
- Use Interpolator.chain() instead of manual lambda for consistency
- Remove redundant null guard on interpolator.interpolate() result
- Fix comment reference from MNG-XXXX to apache#12729
- Add regression integration test for apachegh-12729

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Co-authored-by: Guillaume Nodet <[email protected]>
Co-authored-by: Claude Opus 4.6 <[email protected]>
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Aug 29, 2026
@gnodet gnodet added the bug Something isn't working label Aug 29, 2026
@gnodet @claude
fix: adapt IT test to maven-4.0.x AbstractMavenIntegrationTestCase API
45a5581
The base class on maven-4.0.x requires a version range constructor
argument and uses File/String instead of Path for extractResources
and newVerifier.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
gnodet
gnodet commented Aug 29, 2026
View reviewed changes

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean backport of #12734 (module/subproject path property interpolation fix) to maven-4.0.x. No issues found.

Backport observations:

  • The interpolation code in DefaultModelBuilder.java is identical between master and this backport — only surrounding line numbers differ due to branch divergence.
  • Integration test correctly adapted to the maven-4.0.x AbstractMavenIntegrationTestCase API:
    • File return type for extractResources() (vs Path on master)
    • String-based newVerifier() (vs Path on master)
    • Mandatory version-range constructor super("[4.0.0-rc-1,)")
  • Interpolator.chain() is already used elsewhere in DefaultModelBuilder on maven-4.0.x (line 2441), confirming API availability.
  • All five findings from the original multi-round review of #12734 (property precedence, Interpolator.chain(), regression test, placeholder reference, null guard) are reflected in the backported code.
  • No backport to maven-3.9.x / maven-3.10.x needed — this is a Maven 4 regression that restores behavior Maven 3 already had.

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of Guillaume Nodet

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gnodet
gnodet merged commit d2957d8 into apache:maven-4.0.x Aug 29, 2026
22 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot assigned gnodet Aug 29, 2026
@gnodet
gnodet deleted the backport/12734-to-maven-4.0.x branch October 26, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gnodet gnodet

Labels

bug Something isn't working

Projects

None yet

Milestone

4.0.0-rc-7

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@gnodet @waterWang
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.