1、在pom.xml 文件中加上一个依赖
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20.1</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin> </plugins> </build>
不知道是不是只加这个就可以了
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20.1</version> <configuration> <skipTests>true</skipTests> </configuration> </plugin>
参考:Maven打包跳过测试的5种方式_maven package 跳过测试-CSDN博客
标签:maven,plugin,跳过,Maven,org,true,打包 From: https://www.cnblogs.com/wwssgg/p/17812030.html