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

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.6.3
    • Fix Version/s: 3.7.0
    • Component/s: Command Line
    • Labels:
      None
    • Environment:
      Microsoft Windows [Version 10.0.18363.535]
    • Flags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: