You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2962: Fix Javadoc generation r=saig0 a=Zelldon
## Description
After migration to Java 11 the generation of JavaDoc failed on develop.The following error was printed:
```java
[2019-08-09T16:16:31.038Z] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (default-cli) on project zeebe-build-tools: MavenReportException: Error while creating archive:
[2019-08-09T16:16:31.038Z] [ERROR] Exit code: 1 - Picked up JAVA_TOOL_OPTIONS: -XX:+UseContainerSupport
[2019-08-09T16:16:31.038Z] [ERROR]
[2019-08-09T16:16:31.038Z] [ERROR] javadoc: error - The code being documented uses modules but the packages defined in http://docs.oracle.com/javase/7/docs/api/ are in the unnamed module.
[2019-08-09T16:16:31.038Z] [ERROR]
[2019-08-09T16:16:31.038Z] [ERROR] Command line was: /docker-java-home/bin/javadoc @options @packages
[2019-08-09T16:16:31.038Z] [ERROR]
[2019-08-09T16:16:31.038Z] [ERROR] Refer to the generated Javadoc files in '/home/jenkins/workspace/zeebe-io_zeebe_develop/build-tools/target/apidocs' dir.
[2019-08-09T16:16:31.038Z] [ERROR] -> [Help 1]
```
Multiple things where problematic. As first we used an old java doc plugin, inherited by the camunda release parent and the java version was not set correctly.
After fixing this, some other modules had still a problem with generating java doc.
* `json-el`:
* Scala currently do not support 100% Java 11.
See:
* https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html
* scala/scala-dev#559
* `gateway-protocol-impl`
* is compiled with 8, but if we execute java doc with 11 we get the error that javax was not found. I will create an issue to investigate this.
* `protocol-assert`:
* generated code seems to have some problems with the javadoc. I create an issue for this.
To verify the changes you can run:
```bash
mvn -B -T1C generate-sources source:jar javadoc:jar clean verify -DskipTests
```
#
Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
0 commit comments