jsqsh
jsqsh copied to clipboard
Unable to find javadoc command even though JAVA_HOME is set
mvn package
results in
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project jsqsh: MavenReportException: Error while creating archive: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set. -> [Help 1]
JAVA_HOME is not correctly set
rslee@MSI:~/github/arcion/docker-dev/arcion-demo-test$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-amd64
https://stackoverflow.com/questions/49472783/maven-is-unable-to-find-javadoc-command seems to fix the issue
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>