Skip to content

[MNG-6837] Simplify detection of the MAVEN_HOME and make it fully qualified on Windows #8451

Closed

Description

@jira-importer

Rostislav Krasny opened MNG-6837 and commented

I propose the following pull request with a simple change of the 'mvn.cmd' batch script:
#307

The removed 'stripMHome' recursive function is not needed anymore.

Part of the 'mvn -version' output before this change:
Maven home: D:\develop\apache-maven-3.6.3\bin..

Same part of the 'mvn -version' output after this change:
Maven home: D:\develop\apache-maven-3.6.3
I.e. now it's fully qualified.


Affects: 3.6.3

Remote Links:

Backported to: 4.0.0-alpha-2, 3.8.2

Activity

  1. jira-importer commented on Jan 13, 2020

    @jira-importer
    Author
  2. jira-importer commented on Jun 26, 2021

    @jira-importer
    Author

    Michael Osipov commented

    Fixed with 3a465e14779483c1c4f0be552298f5d2b232a29b for maven-3.8.x branch.

  3. added
    enhancement
    priority:trivial
    on Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementpriority:trivial

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions