Skip to content

Unable to find javadoc command even though JAVA_HOME is set #66

@robert-s-lee

Description

@robert-s-lee

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions