您的位置:首页 > 大数据 > 人工智能

maven Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:

2015-08-18 15:34 453 查看
[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.
解决方法1:mvn package -Dmaven.test.failture.ignore=true安装,但没有成功。
解决方法2:使用插件,在相应pom.xml文件里面,修改

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>添加了红色配置部分,成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: