maven编译的时候跳过test
方式1:用命令带上参数
mvn install -Dmaven.test.skip=true
方式2:在pom.xml里面配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

浙公网安备 33010602011771号