【Maven】跳过test测试直接进行编译打包
转载自:
http://blog.csdn.net/lihuapiao/article/details/47775455
有2种方式
方式1:用命令带上参数
mvn install -Dmaven.test.skip=true
方式2:在pom.xml里面配置
- <plugins>
- <!--跳过test begin-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- <!--跳过test end--><span style="font-family:Arial;">
- </span>