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

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

Introduction

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

What is maven-enforcer-api.noarch

This component provides the generic interfaces needed to implement custom rules for the maven-enforcer-plugin.

We can use yum to install maven-enforcer-api.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-api.noarch.

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

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

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

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

sudo yum remove maven-enforcer-api.noarch

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

/usr/share/doc/maven-enforcer-api-1.2
/usr/share/doc/maven-enforcer-api-1.2/LICENSE
/usr/share/doc/maven-enforcer-api-1.2/NOTICE
/usr/share/java/maven-enforcer
/usr/share/java/maven-enforcer/enforcer-api.jar
/usr/share/maven-effective-poms/JPP.maven-enforcer-enforcer-api.pom
/usr/share/maven-fragments/maven-enforcer-enforcer-api.xml
/usr/share/maven-poms/JPP.maven-enforcer-enforcer-api.pom

References

Summary

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