How to skip the test junit when eclipse integrates maven packaging

1. Preface.
   As in the title.
2. Code.
Modify pom.xml and add plugins to the build option as follows:
<build>
  <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
    </plugins>
</build>


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326466170&siteId=291194637