The Maven Failsafe Plugin is used to run integration tests with Maven build tools.
The Maven Failsafe Plugin is designed to run integration tests while the Surefire Plugin is designed to run unit tests. The name (failsafe) was chosen both because it is a synonym of surefire and because it implies that when it fails, it does so in a safe way.
This plugin is strictly linked to the following Maven phases: integration-test
, verify
. However, during its usage, the pre-integration-test
and post-integration-test
phases are also often used (i.e. set-up and tear-down of an embedded web server).
Check the official usage page for a first look at this plugin.