IDEA:Error rendering Maven report: Unable to find javadoc command:The environment variable JAVA_HOME is not correctly set.

2017-05-11

在IDEA中编写maven的pom脚本,执行 mvn install -Dmaven.test.skip=true -X,结果却提示"JAVA_HOME"变量设置不正确,具体提示如下:

Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project QSProject: Error during page generation: Error rendering Maven report: Unable to find javadoc command:The environment variable JAVA_HOME is not correctly set. ->

解决方案

打开idea的preference-->Maven-->Runner,点击右边的"..."进入编辑对话框,添加进去即可,下面贴出图片:

显示JAVA_HOME 可以参考https://qiancheng.me/post/coding/java-home-export-setup

http://stackoverflow.com/questions/20313453/Java-home-on-osx-with-eclipse-and-maven

Comments
Write a Comment