打包跳过测试

方法一:

在打包时增加1个参数:
mvn clean package -DskipTests

方法二:

mvn clean package -Dmaven.test.skip=true

方法三:

pom中加入

  1. <properties>
  2. <skipTests>true</skipTests>
  3. </properties>
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <includeSystemScope>true</includeSystemScope>
            </configuration>
        </plugin>
    </plugins>
</build>