开发者

Maven is not using failsafe plugin for integration tests

开发者 https://www.devze.com 2023-03-13 07:40 出处:网络
When I 开发者_如何学Crun mvn clean install, for the integration-test phase it does not use the failsafe plugin.

When I 开发者_如何学Crun mvn clean install, for the integration-test phase it does not use the failsafe plugin.

However if i explicilty call the plugin to run the integration test, it works (mvn failsafe:integration-test).

How can I make maven use the failsafe plugin when I run mvn clean install during the integration-test phase?


Quote from 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 looking for?

0

精彩评论

暂无评论...
验证码 换一张
取 消