打包跳过测试
方法一:
在打包时增加1个参数:
mvn clean package -DskipTests
方法二:
mvn clean package -Dmaven.test.skip=true
方法三:
pom中加入
<properties>
<skipTests>true</skipTests>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>