How To Install maven-failsafe-plugin on Fedora 36

In this tutorial we learn how to install maven-failsafe-plugin in Fedora 36. maven-failsafe-plugin is Maven plugin for running integration tests

Introduction

In this tutorial we learn how to install maven-failsafe-plugin on Fedora 36.

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 Fedora 36. 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 Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install maven-failsafe-plugin using dnf by running the following command:

sudo dnf -y install maven-failsafe-plugin

Install maven-failsafe-plugin on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install maven-failsafe-plugin using yum by running the following command:

sudo yum -y install maven-failsafe-plugin

How To Uninstall maven-failsafe-plugin on Fedora 36

To uninstall only the maven-failsafe-plugin package we can use the following command:

sudo dnf remove maven-failsafe-plugin

maven-failsafe-plugin Package Contents on Fedora 36

/usr/share/java/maven-surefire
/usr/share/java/maven-surefire/maven-failsafe-plugin.jar
/usr/share/maven-metadata/maven-surefire-failsafe-plugin.xml
/usr/share/maven-poms/maven-surefire
/usr/share/maven-poms/maven-surefire/maven-failsafe-plugin.pom

References

Summary

In this tutorial we learn how to install maven-failsafe-plugin on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).