-
Improvement
-
Resolution: Fixed
-
Minor
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.
- depends on
-
JENKINS-45842 Enforce version of build JDK in Maven HPI plugin
- Closed
-
JENKINS-54842 Use Java 11 built-in functionality instead of Animal Sniffer
- Closed
- links to