Skip test when maven compiles

There are 2 ways 

Method 1: Use the command with parameters

mvn install -Dmaven.test.skip=true

 

Method 2: Configure in pom.xml

 

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326609842&siteId=291194637