The Maven surefire plugin helps perform unit tests, and if any tests fail, the Maven build will automatically abort them. While executing integration tests, the Maven surefire plugin will separate failing the build from running unit tests.