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

maven should use JDK_HOME env var if present

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Trivial
    • Resolution: Auto Closed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows 7

      Description

      JAVA_HOME is for jre, but maven searches for javac there.
      One can add
      @if not "%JDK_HOME%" == "" set JAVA_HOME="%JDK_HOME%"
      to mvn.bat
      and the analogue string to .sh script

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                guai guai
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: