How To Install maven-failsafe-plugin.noarch on Amazon Linux 2

In this tutorial we learn how to install maven-failsafe-plugin.noarch in Amazon Linux 2. maven-failsafe-plugin.noarch is Maven plugin for running integration tests

Introduction

In this tutorial we learn how to install maven-failsafe-plugin.noarch on Amazon Linux 2.

What is maven-failsafe-plugin.noarch

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 to install maven-failsafe-plugin.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install maven-failsafe-plugin.noarch.

Install maven-failsafe-plugin.noarch on Amazon Linux 2 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.noarch using yum by running the following command:

sudo yum -y install maven-failsafe-plugin.noarch

How To Uninstall maven-failsafe-plugin.noarch on Amazon Linux 2

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

sudo yum remove maven-failsafe-plugin.noarch

maven-failsafe-plugin.noarch Package Contents on Amazon Linux 2

/usr/share/java/maven-surefire/maven-failsafe-plugin.jar
/usr/share/maven-effective-poms/JPP.maven-surefire-maven-failsafe-plugin.pom
/usr/share/maven-fragments/maven-surefire-failsafe-plugin.xml
/usr/share/maven-poms/JPP.maven-surefire-maven-failsafe-plugin.pom

References

Summary

In this tutorial we learn how to install maven-failsafe-plugin.noarch on Amazon Linux 2 using yum.