持续集成打包时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test

我在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>

猜你喜欢

转载自blog.csdn.net/wshicainiao/article/details/86480139