Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robert-s-lee opened this issue Apr 30, 2023 · 0 comments
Open

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

robert-s-lee opened this issue Apr 30, 2023 · 0 comments

Comments

@robert-s-lee
Copy link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant