maven install时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test

事故现场:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test

解决办法:

1.是命令行,

mvn clean package -Dmaven.test.skip=true

2.是写入pom文件,

<plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.4.2</version>
         <configuration>
                  <skipTests>true</skipTests>
         </configuration>
</plugin>
参考: https://www.cnblogs.com/lxcy/p/8279899.html

猜你喜欢

转载自blog.csdn.net/Retank/article/details/89841064
今日推荐