-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
Environment (Required on creation):
- Camunda Jenkinkins 7.16 Release CI
- JDK 11
Description:
The 7.16[-TEST]-RELEASE-build-camunda-bpm-CE-tags job builds the JavaDocs of the project using the maven-javadoc-plugin. The plugin is on version 2.9.1. When running the maven-javadoc-plugin on JDK 11, a bug is triggered (https://issues.apache.org/jira/browse/MJAVADOC-540) and the build fails.
09:33:35[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (default-cli) on project camunda-root: Execution default-cli of goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar: java.lang.ExceptionInInitializerError: null 09:33:35[ERROR] ----------------------------------------------------- 09:33:35[ERROR] realm = plugin>org.apache.maven.plugins:maven-javadoc-plugin:2.9.1 09:33:35[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy 09:33:35[ERROR] urls[0] = file:/mnt/git/workspace/7.16/7.16-TEST-RELEASE-build-camunda-bpm-CE-tags/.repository/org/apache/maven/plugins/maven-javadoc-plugin/2.9.1/maven-javadoc-plugin-2.9.1.jar . . . 09:33:35[ERROR] Number of foreign imports: 1 09:33:35[ERROR] import: Entry[import from realm ClassRealm[project>org.camunda.bpm:camunda-root:7.16.99, parent: ClassRealm[maven.api, parent: null]]] 09:33:35[ERROR] 09:33:35[ERROR] -----------------------------------------------------: begin 0, end 3, length 2 09:33:35[ERROR] -> [Help 1] 09:33:35[ERROR] 09:33:35[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 09:33:35[ERROR] Re-run Maven using the -X switch to enable full debug logging. 09:33:35[ERROR] 09:33:35[ERROR] For more information about the errors and possible solutions, please read the following articles: 09:33:35[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
Steps to reproduce (Required on creation):
- Configure the https://release.cambpm.camunda.cloud/view/Release-Test/job/7.16/job/7.16-TEST-RELEASE-build-camunda-bpm-CE-tags/ job to run on JDK 11.
- Run the test release jobs.
- The 7.16-TEST-RELEASE-build-camunda-bpm-CE-tags job will fail.
Observed Behavior (Required on creation):
The 7.16 release can't complete.
Expected behavior (Required on creation):
The 7.16 release completes successfully.
Root Cause (Required on prioritization):
A bug in the maven-javadoc-plugin 2.9.1 when run on JDK 11.
Solution Ideas (Optional):
The related ticket in the maven-javadoc-plugin https://issues.apache.org/jira/browse/MJAVADOC-540 suggests bumping the plugin version to 3.0.1 where a fix is present.