How To Install maven-enforcer-rules.noarch on Amazon Linux 2

In this tutorial we learn how to install maven-enforcer-rules.noarch in Amazon Linux 2. maven-enforcer-rules.noarch is Enforcer Rules

Introduction

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

What is maven-enforcer-rules.noarch

This component contains the standard Enforcer Rules.

We can use yum to install maven-enforcer-rules.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install maven-enforcer-rules.noarch.

Install maven-enforcer-rules.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-enforcer-rules.noarch using yum by running the following command:

sudo yum -y install maven-enforcer-rules.noarch

How To Uninstall maven-enforcer-rules.noarch on Amazon Linux 2

To uninstall only the maven-enforcer-rules.noarch package we can use the following command:

sudo yum remove maven-enforcer-rules.noarch

maven-enforcer-rules.noarch Package Contents on Amazon Linux 2

/usr/share/java/maven-enforcer/enforcer-rules.jar
/usr/share/maven-effective-poms/JPP.maven-enforcer-enforcer-rules.pom
/usr/share/maven-fragments/maven-enforcer-enforcer-rules.xml
/usr/share/maven-poms/JPP.maven-enforcer-enforcer-rules.pom

References

Summary

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