其他分享
首页 > 其他分享> > 2020-12-01

2020-12-01

作者:互联网

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

解决办法
一.cmd到pom文件同文件夹下,执行以下命令

mvn clean package -Dmaven.test.skip=true

二.写入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

标签:12,surefire,maven,apache,01,2020,plugins,test,org
来源: https://blog.csdn.net/m0_48875011/article/details/110426544