Skip to content

Add support for MAVEN_PROJECTBASEDIR substitution in jvm.config (backport of MNG-8598 to 3.10.x) - #13115

Merged
gnodet merged 1 commit into
apache:maven-3.10.xfrom
gnodet:backport/MNG-8598-to-3.10.x
Sep 14, 2026
Merged

gnodet merged 1 commit into
apache:maven-3.10.xfrom
gnodet:backport/MNG-8598-to-3.10.x

Conversation

@gnodet

@gnodet gnodet commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Backport of #11146 (MNG-8598) to the maven-3.10.x branch.

Adds MAVEN_PROJECTBASEDIR variable substitution in .mvn/jvm.config for both Unix and Windows launcher scripts. Cherry-pick of c75e58e, applied cleanly with no conflicts.

See also: #2194 (original), #10140, #11146 (3.9.x backport)

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
  • I hereby declare this contribution to be licenced under the Apache License Version 2.0, January 2004

@gnodet gnodet added bug Something isn't working backport labels Sep 14, 2026
@gnodet gnodet added this to the 3.10.0 milestone Sep 14, 2026

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Clean cherry-pick of c75e58e from maven-3.9.x (PR #11146, MNG-8598). The MAVEN_PROJECTBASEDIR substitution logic in both mvn and mvn.cmd is byte-identical to what's already merged on 3.9.x. The only contextual differences (jansi→jline) are pre-existing in the 3.10.x base from #12567. No new code, no adaptation needed — straightforward backport. Milestone 3.10.0 already set.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet
gnodet merged commit 8a1993c into apache:maven-3.10.x Sep 14, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants