Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround javadoc problem with Java 11
When building with "make JAVA_VERSION=11 ..." I got an error about JAVA_HOME not being set: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:jar (attach-javadocs) on project kafka-agent: MavenReportException: Error while generating Javadoc: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set. -> [Help 1] Rather than forcing people to set JAVA_HOME (which is the fallback maven-javadoc-plugin uses for finding the javadoc executable) configure the executable location directly according to the JVM being used to run maven. See https://stackoverflow.com/questions/57081473/how-to-make-maven-javadoc-plugin-work-with-any-java-version Signed-off-by: Tom Bentley <[email protected]>
- Loading branch information