Maven
  1. Maven
  2. MNG-2376

Have Java code output Java version, not the shell script

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.7
    • Component/s: Command Line
    • Labels:
      None
    • Environment:
      Mac OS X 10.4

      Description

      The shell script outputs $JAVA_VERSION. In my case, in an ill-fated attempt to get maven to use JDK 1.4, this was set to 1.4 but JAVA_HOME was already set (in .profile or wherever) to that of the current JDK (1.5). So it is inconsistent and led me on a wild goose chase to track down a problem. If Maven is going to output the java version, do it from java code using the right system property. Only use JAVA_VERSION to help select a JAVA_HOME, if JAVA_HOME isn't set.

      Perhaps there is some standard approach to this sort of thing but I am unsure.

        Issue Links

          Activity

          David Smiley created issue -
          John Casey made changes -
          Field Original Value New Value
          Fix Version/s 2.2 [ 12081 ]
          Jason van Zyl made changes -
          Fix Version/s 2.2.x [ 13145 ]
          Fix Version/s 2.2 [ 12081 ]
          Brian Fox made changes -
          Link This issue duplicates MNG-2582 [ MNG-2582 ]
          Brian Fox made changes -
          Assignee Brian Fox [ brianfox ]
          Brian Fox made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Fix Version/s 2.0.7 [ 13138 ]
          Fix Version/s 2.2.x [ 13145 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12712995 ] Default workflow, editable Closed status [ 12752883 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12950032 ] Default workflow, editable Closed status [ 12986231 ]

            People

            • Assignee:
              Brian Fox
              Reporter:
              David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development