• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • plugin-pom

      Allow a plugin to compile and test successfully with the java.level property set to 11.

      As of Feb 8, 2022, when the java.level property is set to 11, the plugin compilation process fails with the message:

      [ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.22:test-hpl (default-test-hpl) on project platformlabeler: Unsupported Java version string: `1.11`. If you use Java 9 or above, see https://openjdk.java.net/jeps/223 -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      The maven hpi plugin will need to be extended to allow java.level to be set to 11.

          [JENKINS-54828] Support building plugins with Java 11 and 17

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Epic Link New: JENKINS-40689 [ 177392 ]
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Labels New: java11-devtools-compatibility

          oleg_nenashev is this done or a duplicate of something else? I'm not sure I've not seen another one elsewhere.

          Baptiste Mathus added a comment - oleg_nenashev is this done or a duplicate of something else? I'm not sure I've not seen another one elsewhere.

          More details and acceptance criteria might help understand better the scope here BTW.

          Baptiste Mathus added a comment - More details and acceptance criteria might help understand better the scope here BTW.
          Baptiste Mathus made changes -
          Labels Original: java11-devtools-compatibility New: java11-devtools-compatibility needs-details triaged
          Mark Waite made changes -
          Description New: Allow a plugin to compile and test successfully with the {{java.level}} property set to {{11}}.

          As of Feb 8, 2022, when the {{java.level}} property is set to {{11}}, the plugin compilation process fails with the message:

          {noformat}
          [ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.22:test-hpl (default-test-hpl) on project platformlabeler: Unsupported Java version string: `1.11`. If you use Java 9 or above, see https://openjdk.java.net/jeps/223 -> [Help 1]
          [ERROR]
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
          [ERROR] Re-run Maven using the -X switch to enable full debug logging.
          [ERROR]
          [ERROR] For more information about the errors and possible solutions, please read the following articles:
          [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
          {noformat}

          The maven hpi plugin will need to be extended to allow {{java.level}} to be set to 11.
          Mark Waite made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]

            basil Basil Crow
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: