qbicsoftware / parent-poms

We keep all parent POMs under this single repository.
2 stars 1 forks source link

The Surefire Maven plugin is running integration tests #33

Closed chahuistle closed 5 years ago

chahuistle commented 5 years ago

This plugin is currently configured as follows:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.21.0</version>
  <configuration>
    <excludes>
      <exclude>**/*IntegrationTest.java</exclude>
    </excludes>
  </configuration>
  <executions>
    <execution>
      <id>integration-test</id>
      <goals>
        <goal>test</goal>
      </goals>
      <phase>integration-test</phase>
      <configuration>
        <excludes>
          <exclude>none</exclude>
        </excludes>
        <includes>
          <include>**/*IntegrationTest.java</include>
        </includes>
      </configuration>
    </execution>
  </executions>
</plugin>

It seems to me that this configuration is incorrect.