How To Install maven-failsafe-plugin on CentOS 7
Introduction
In this tutorial we learn how to install maven-failsafe-plugin
on CentOS 7.
What is maven-failsafe-plugin
The Failsafe Plugin is designed to run integration tests while the Surefire Plugins is designed to run unit. 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. If you use the Surefire Plugin for running tests, then when you have a test failure, the build will stop at the integration-test phase and your integration test environment will not have been torn down correctly. The Failsafe Plugin is used during the integration-test and verify phases of the build lifecycle to execute the integration tests of an application. The Failsafe Plugin will not fail the build during the integration-test phase thus enabling the post-integration-test phase to execute.
We can use yum
or dnf
to install maven-failsafe-plugin
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install maven-failsafe-plugin.
Install maven-failsafe-plugin on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install maven-failsafe-plugin
using yum
by running the following command:
Install maven-failsafe-plugin on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install maven-failsafe-plugin
using dnf
by running the following command:
How To Uninstall maven-failsafe-plugin on CentOS 7
To uninstall only the maven-failsafe-plugin
package we can use the following command:
References
Summary
In this tutorial we learn how to install maven-failsafe-plugin
on CentOS 7 using yum
and dnf
.