SpringBoot 项目打成 jar 包,并跳过测试的方法

xiaoxiao2021-02-28  32

SpringBoot 打成 jar 包

<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>

跳过测试:

<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> </plugins>

Spring Boot学习–打包一个可执行的jar项目 https://blog.csdn.net/qq_35981283/article/details/77783736

maven编译的时候跳过test https://my.oschina.net/u/865478/blog/159657


转载请注明原文地址: https://www.6miu.com/read-2613316.html

最新回复(0)