17)maven-surefire-plugin

http://maven.apache.org/surefire/maven-surefire-plugin/

Goals Overview

The Surefire Plugin has only one goal:

  • surefire:test runs the unit tests of an application.

Examples

The following examples show how to use the Surefire Plugin in more advanced use cases:

举例说明:Skipping Tests

<project>
  [...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.19.1</version>
        <configuration>
          <skipTests>true</skipTests>
        </configuration>
      </plugin>
    </plugins>
  </build>
  [...]
</project>
原文地址:https://www.cnblogs.com/zno2/p/5691201.html