码迷,mamicode.com
首页 > 编程语言 > 详细

Spring Boot项目Maven Build报错的解决方法

时间:2018-05-06 01:39:01      阅读:1067      评论:0      收藏:0      [点我收藏+]

标签:bubuko   解决方法   result   .com   dual   项目   repo   HERE   src   

问题1,

[ERROR]Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project motherBuyBoot: There are test failures

[ERROR] Please refer to D:\web\motherbuy\target\surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.

f方法:pom,xml 文件的Junit版本不对,或者其他原因,我将junit依赖注释掉,编译通过;亲测有效。

问题2,

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project motherBuyBoot: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

方法:由此联想到compile编译环境的问题,是没有配置好;看图解决,别忘了update maven

技术分享图片

 

 

Spring Boot项目Maven Build报错的解决方法

标签:bubuko   解决方法   result   .com   dual   项目   repo   HERE   src   

原文地址:https://www.cnblogs.com/iloverain/p/8996732.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!