How To Install maven-enforcer-api on Fedora 36

In this tutorial we learn how to install maven-enforcer-api in Fedora 36. maven-enforcer-api is Enforcer API

Introduction

In this tutorial we learn how to install maven-enforcer-api on Fedora 36.

What is maven-enforcer-api

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

We can use yum or dnf to install maven-enforcer-api on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install maven-enforcer-api.

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

sudo dnf -y install maven-enforcer-api

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

sudo yum -y install maven-enforcer-api

How To Uninstall maven-enforcer-api on Fedora 36

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

sudo dnf remove maven-enforcer-api

maven-enforcer-api Package Contents on Fedora 36

/usr/share/doc/maven-enforcer-api
/usr/share/doc/maven-enforcer-api/LICENSE
/usr/share/doc/maven-enforcer-api/NOTICE
/usr/share/java/maven-enforcer
/usr/share/java/maven-enforcer/enforcer-api.jar
/usr/share/maven-metadata/maven-enforcer-enforcer-api.xml
/usr/share/maven-poms/maven-enforcer
/usr/share/maven-poms/maven-enforcer/enforcer-api.pom

References

Summary

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