Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6837

Simplify detection of the MAVEN_HOME and make it fully qualified on Windows

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.6.3
    • 3.8.2, 4.0.0-alpha-2, 4.0.0
    • Command Line
    • None
    • Microsoft Windows [Version 10.0.18363.535]
    • Patch

    Description

      I propose the following pull request with a simple change of the 'mvn.cmd' batch script:
      https://github.com/apache/maven/pull/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.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              rosti-il Rostislav Krasny
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: