Maven Invoker Plugin
  1. Maven Invoker Plugin
  2. MINVOKER-106

invoker.java.version is always evaluated against current JVM instead of JVM running the builds

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.8
    • Labels:
      None

      Description

      The selector condition for the JVM version always looks at the current JVM, not the JVM that will be used to run the forked builds. This gets only obvious when using invoker.javaHome to point at a different JVM than the one running the Invoker Plugin.

        Issue Links

          Activity

          Benjamin Bentmann created issue -
          Robert Scholte made changes -
          Field Original Value New Value
          Link This issue relates to MINVOKER-126 [ MINVOKER-126 ]
          Hide
          Robert Scholte added a comment -

          One way to figure it out is by calling

          {java.home}

          /bin/java -version and parse the output, but I'm not sure if this is vendor specific.

          Show
          Robert Scholte added a comment - One way to figure it out is by calling {java.home} /bin/java -version and parse the output, but I'm not sure if this is vendor specific.
          Robert Scholte made changes -
          Assignee Robert Scholte [ rfscholte ]
          Robert Scholte made changes -
          Link This issue depends upon MINVOKER-144 [ MINVOKER-144 ]
          Hide
          Robert Scholte added a comment -

          We need to access the PluginDescriptor.getPluginArtifact(), M2.2.1 is the first stable Maven version which supports this.

          Show
          Robert Scholte added a comment - We need to access the PluginDescriptor.getPluginArtifact() , M2.2.1 is the first stable Maven version which supports this.
          Hide
          Robert Scholte added a comment -

          Fixed in r1408460

          Show
          Robert Scholte added a comment - Fixed in r1408460
          Robert Scholte made changes -
          Fix Version/s 1.8 [ 18730 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:28:53 UTC 2015 [ 1428229733495 ]
          Mark Thomas made changes -
          Workflow jira [ 12721814 ] Default workflow, editable Closed status [ 12762072 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:02:09 UTC 2015 [ 1428278529346 ]
          Mark Thomas made changes -
          Workflow jira [ 12959355 ] Default workflow, editable Closed status [ 12996189 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          828d 8h 18m 1 Robert Scholte 12/Nov/12 15:11

            People

            • Assignee:
              Robert Scholte
              Reporter:
              Benjamin Bentmann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development