The Failsafe Plugin is designed to run integration tests while the Surefire Plugin is designed to run unit tests Resources https://maven.apache.org/surefire/maven-failsafe-plugin/ Configuring JUnit Platform https://maven.apache.org/surefire/maven-failsafe-plugin/examples/junit-platform.html