springboot打包忽略Test

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

        <maven.plugin.version>3.8.1</maven.plugin.version>
        <maven.surefire.plugin.version>2.22.2</maven.surefire.plugin.version>
        <jib-maven-plugin.version>1.5.1</jib-maven-plugin.version>

        <skipTests>true</skipTests>
    </properties>

或者

<plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-surefire-plugin</artifactId>
      <version>${maven.surefire.plugin.version}</version>
       <configuration>
  
      <skipTests>true</skipTests>
    </configuration> 
</plugin>

 

posted @ 2021-11-05 11:43  wujingqi  阅读(850)  评论(0编辑  收藏  举报