Sometimes you want to disable tests in Maven, f.ex integration tests that you need to just do quick tests against an external component. These are brittle tests and should therefore not be part of the automatic build …..
Here is how to diable such tests from the maven build
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <excludes> <exclude>**/IntegrationTest.java</exclude> </excludes> </configuration> </plugin>
Here is a complete description of the surefire plugin