我在項目目錄運行此命令來構建和打包:無法找到javadoc的命令 - 行家
mvn clean javadoc:jar package
我有我的JAVA_HOME
變量設置正確。 顯然:
$ which java
/usr/bin/java
$ sudo ls -l /usr/bin/java
lrwxr-xr-x 1 root wheel 74 Dec 18 23:42 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
$ which javadoc
/usr/bin/javadoc
有沒有人知道爲什麼mvn仍然抱怨?
Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar (default-cli) on project foo_bar: MavenReportException: Error while creating archive: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set. -> [Help 1]
你用mvn獲得什麼-v –
echo $ JAVA_HOME是什麼意思? – Raghuram
它只是空的! – user1508893