Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-5275

mvn.bat uses wrong HOME directory

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 3.0.4
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Environment:
      win7
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            John
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: