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

Rework JAVA_HOME handling

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-2, 4.0.0
    • Command Line
    • None

    Description

      Coming from here.
      rfscholte says:
      It is not needed anymore to set JAVA_HOME.
      If it is set, %JAVA_HOME%/bin/java should be used to start Maven, otherwise java should be picked up from the PATH.
      This should be explained on the install page.

      With this we can assume that JAVA_HOME was set on purpose, but misconfigured.
      I suggest to have a message like:

      The JAVA_HOME environment variable is not defined correctly, so Apache Maven cannot be started.
      JAVA_HOME is set to "<actual value>", but "%JAVA_HOME%/bin/java" does not exist.
      

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: