maven install時報錯Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

事故現場:

解決辦法:

一是命令行,html

mvn clean package -Dmaven.test.skip=true


二是寫入pom文件,apache

<plugin>  
        <groupId>org.apache.maven.plugins</groupId>  
        <artifactId>maven-surefire-plugin</artifactId>  
        <version>2.4.2</version>  
        <configuration>  
          <skipTests>true</skipTests>  
        </configuration>  
</plugin>  
相關文章
相關標籤/搜索