Maven
  1. Maven
  2. MNG-2413

maven version insistence based on wrong variable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: Bootstrap & Build
    • Labels:
      None
    • Environment:
      OS : ubuntu dapper
      java vm : SableVM 1.11.3

      Description

      MavenCli does

      if (System.getProperty("java.class.version", "44.0").compareTo("48.0") < 0) //then echo "sorry we need version 1.4"

      however java.class.version is the binary packaging format for the classes, not the supported API. java.version is the supported api, for which sable returns 1.4.2. So the process aborts out, wanting the 1.4 API, when it has 1.4 API (sable has 46.0 instead of 48.0 as the class packaging format used)

        Activity

        j created issue -
        Hide
        Joerg Schaible added a comment -

        Be careful with java.version also, see comments on XSTR-249. XStream uses therefore java.specification.version now.

        Show
        Joerg Schaible added a comment - Be careful with java.version also, see comments on XSTR-249. XStream uses therefore java.specification.version now.
        John Casey made changes -
        Field Original Value New Value
        Fix Version/s 2.0.5 [ 12294 ]
        kenneyw made changes -
        Fix Version/s 2.0.5 [ 12294 ]
        Fix Version/s 2.0.6 [ 13010 ]
        kenneyw made changes -
        Fix Version/s 2.0.6 [ 13010 ]
        Fix Version/s 2.0.5 [ 12294 ]
        Hide
        Siveton Vincent added a comment -

        Fixed using "java.specification.version" instead of "java.class.version"

        Show
        Siveton Vincent added a comment - Fixed using "java.specification.version" instead of "java.class.version"
        Siveton Vincent made changes -
        Resolution Fixed [ 1 ]
        Assignee Vincent Siveton [ siveton ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12713024 ] Default workflow, editable Closed status [ 12752888 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12950036 ] Default workflow, editable Closed status [ 12986233 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        131d 10h 52m 1 Siveton Vincent 09/Nov/06 07:35

          People

          • Assignee:
            Siveton Vincent
            Reporter:
            j
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development