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

SpringBoot 打成 jar 包

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

跳过测试:

<plugins>
      <plugin>
        <groupId>org.apache.maven.pluginsgroupId>
        <artifactId>maven-surefire-pluginartifactId>
        <configuration>
          <skip>trueskip>
        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


你可能感兴趣的:(SpringBoot)