我在devops环境下打包时报错
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test) on project erp: There are test failures.
改正方法:
在pom的build部分加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
在DevOps环境下使用Maven进行项目打包时遇到测试失败错误,解决方法是在pom.xml的build部分添加maven-surefire-plugin插件配置,设置skipTests参数为true,跳过测试阶段。
4776

被折叠的 条评论
为什么被折叠?



