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

Replace %HOME% with %USERPROFILE% in mvn.cmd

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.9
    • Fix Version/s: 3.5.0-alpha-1, 3.5.0
    • Component/s: Command Line
    • Labels:
      None

      Description

      Setting HOME=%HOMEDRIVE%%HOMEPATH% is a relic from Windows NT times. The preferred way is to use %USERPROFILE% which is already done in Java 8 internally.

      Let's use it to load the mavenrc scripts.

      Some references:

        Issue Links

          Activity

          Hide
          michael-o Michael Osipov added a comment - - edited

          Fixed with 00565ebbfbc69996450f1463644183e8f03b90b7.

          Show
          michael-o Michael Osipov added a comment - - edited Fixed with 00565ebbfbc69996450f1463644183e8f03b90b7.
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in maven-3.x #1257 (See https://builds.apache.org/job/maven-3.x/1257/)
          MNG-6001 Replace %HOME% with %USERPROFILE% in mvn.cmd (michaelo: rev 00565ebbfbc69996450f1463644183e8f03b90b7)

          • apache-maven/src/bin/mvn.cmd
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in maven-3.x #1257 (See https://builds.apache.org/job/maven-3.x/1257/ ) MNG-6001 Replace %HOME% with %USERPROFILE% in mvn.cmd (michaelo: rev 00565ebbfbc69996450f1463644183e8f03b90b7) apache-maven/src/bin/mvn.cmd
          Hide
          stephenc Stephen Connolly added a comment -

          Maven 3.4.0 has been dropped. See this thread for more details.

          This issue will need to be re-scheduled for a Maven release in the (hopefully near) future.

          Show
          stephenc Stephen Connolly added a comment - Maven 3.4.0 has been dropped. See this thread for more details. This issue will need to be re-scheduled for a Maven release in the (hopefully near) future.
          Hide
          michael-o Michael Osipov added a comment -
          Show
          michael-o Michael Osipov added a comment - Fixed with d426bf9c6e59f893499c623c3434ce8f61200d9f .
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in Jenkins build maven-3.x #1532 (See https://builds.apache.org/job/maven-3.x/1532/)
          MNG-6001 Replace %HOME% with %USERPROFILE% in mvn.cmd (michaelo: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=d426bf9c6e59f893499c623c3434ce8f61200d9f)

          • (edit) apache-maven/src/bin/mvn.cmd
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build maven-3.x #1532 (See https://builds.apache.org/job/maven-3.x/1532/ ) MNG-6001 Replace %HOME% with %USERPROFILE% in mvn.cmd (michaelo: http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=d426bf9c6e59f893499c623c3434ce8f61200d9f ) (edit) apache-maven/src/bin/mvn.cmd

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development