执行maven install跳过执行maven test方法(网上搜的记录一下,方面以后使用)

直接在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/AnonymouL/p/6433937.html