Failed to execute "mvn site"
dzc34 opened this issue · 0 comments
dzc34 commented
Bug report
Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project contrast-finder: Error generating maven-javadoc-plugin:3.1.0:aggregate report: Unable to find javadoc command: The environment variable JAVA_HOME is not correctly set.
To Reproduce
cd ~
mv .m2 .m2_backup
git clone ...
cd Contrast-Finder
mvn site
# or
mvn -Preporting site
but, it's works with the folloling command lines:
mvn site -Dmaven.javadoc.skip=true
# or
mvn -Preporting site -Dmaven.javadoc.skip=true
Possible Solution
?
Your Environment
mvn --version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.4, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
java -version
openjdk version "11.0.4" 2019-07-16