频道栏目
首页 > 资讯 > 其他综合 > 正文

maven编译时出现There are test failures问题的解决办法

18-06-26        来源:[db:作者]  
收藏   我要投稿

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

[ERROR]

[ERROR] Please refer to E:\maven\web_nanchang\target\surefire-reports for the individual test results.

解决方法:

这是因为测试代码时遇到错误,它会停止编译。只需要在pom.xml的<project>里添加以下配置,使得测试出错不影响项目的编译。

1.<build>  
2.    <plugins>  
3.        <plugin>  
4.            <groupId>org.apache.maven.plugins</groupId>  
5.            <artifactId>maven-surefire-plugin</artifactId>  
6.            <configuration>  
7.                <testFailureIgnore>true</testFailureIgnore>              
8.            </configuration>  
9.        </plugin>  
10.    </plugins>  
11.</build>  
相关TAG标签
上一篇:移动开发String.index解析
下一篇:vm虚拟机启动centOS黑屏问题的解决办法
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站