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

错误:

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test (default-test) on project

解决方案:

三种方法,看着用

  1. mvn clean package -Dmaven.test.skip=true
  2. 在pom.xml中添加
<plugin>  
       <groupId>org.apache.maven.plugins</groupId>  
       <artifactId>maven-surefire-plugin</artifactId>  
       <version>2.4.2</version>  
       <configuration>  
         <skipTests>true</skipTests>  
       </configuration>  
</plugin>

  1. 注释掉@Test
©️2020 CSDN 皮肤主题: 黑客帝国 设计师:上身试试 返回首页