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

Omit "NB: JAVA_HOME should point to a JDK not a JRE" except when that is the problem

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.8.2, 4.0.0, 4.0.0-alpha-1
    • Component/s: None
    • Labels:
      None

      Description

      Got this message a bunch today:

       

      $ mvn verify
      The JAVA_HOME environment variable is not defined correctly
      This environment variable is needed to run this program
      NB: JAVA_HOME should point to a JDK not a JRE

       

      fair enough. My JAVA_HOME is broken, for reasons. However the problem is *not* that it points to a JDK instead of a JRE. Maven should omit "NB: JAVA_HOME should point to a JDK not a JRE" except when that is the problem.

      Also, I have no idea what NB means here. Nota bene perhaps?

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael-o Michael Osipov
                Reporter:
                elharo Elliotte Rusty Harold
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: