Maven Does Not Use Failover Integration Tests Plugin

When I run mvn clean install, for the phase integration-testit does not use a fault tolerant plugin.

However, if I explain that the plugin runs the integration test, it works ( mvn failsafe:integration-test).

How can I make maven use the failover plugin when I run mvn clean installduring phase integration-test?

+5
source share
1 answer

Quote from the official documentation :

To use the Failsafe Plugin, you need to add the following configuration
to your pom.xml

<project>
  [...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>2.11</version>
        <executions>
          <execution>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  [...]
</project>

Is this what you are looking for?

+10
source

All Articles