- maven-surefire-plugin + maven-surefire-plugin is designed for running unit tests and if any of the tests fail then it will fail the build immediately.
- maven-failsafe-plugin + maven-failsafe-plugin is designed for running integration tests, and decouples failing the build if there are test failures from actually running the tests.