Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile报错

今天在打包dubbo-admin的时候,报了这个错误

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project dubbo-monitor-simple: Compilation failure -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :dubbo-monitor-simple

我使用的打包命令是:

mvn clean package -Dmaven.test.skip=true

刚开始我以为是网络的错误,我又尝试了几次,还是失败。
不说这么多废话了,解决方法,打开pom.xml文件,修改JDK的版本。

在这里插入图片描述
根据自己电脑上的JDk版本来修改,我在github上下载的时候,它的默认版本是1.6.
在这里插入图片描述
BUILD SUCCESS!!!

发布了19 篇原创文章 · 获赞 24 · 访问量 1376

猜你喜欢

转载自blog.csdn.net/qq_43612538/article/details/103548650
今日推荐