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

mvn.bat uses wrong HOME directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 3.0.4
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      win7

      Description

      mvn.bat uses %HOMEDRIVE%%HOMEPATH% for setting HOME on win os:
      set "HOME=%HOMEDRIVE%%HOMEPATH%"
      But java.exe uses %USERPROFILE% for setting "user.home" system property

      %HOMEDRIVE%%HOMEPATH% need not point to same directory as %USERPROFILE% (only in a single user environemt "%HOMEDRIVE%%HOMEPATH% == %USERPROFILE%" would be true)

      So
      set "HOME=%USERPROFILE%"
      would be the correct solution in mvn.bat

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              verkehr@gmx.net John
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: