How To Install maven-jarsigner-plugin on CentOS 7

In this tutorial we learn how to install maven-jarsigner-plugin on CentOS 7. maven-jarsigner-plugin is Signs or verifies a project artifact and attachments using

Introduction

In this tutorial we learn how to install maven-jarsigner-plugin on CentOS 7.

What is maven-jarsigner-plugin

This plugin provides the capability to sign or verify a project artifact and attachments using jarsigner. If you need to sign a project artifact and all attached artifacts, just configure the sign goal appropriately in your pom.xml for the signing to occur automatically during the package phase. If you need to verify the signatures of a project artifact and all attached artifacts, just configure the verify goal appropriately in your pom.xml for the verification to occur automatically during the verify phase.

We can use yum or dnf to install maven-jarsigner-plugin on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install maven-jarsigner-plugin.

Install maven-jarsigner-plugin on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install maven-jarsigner-plugin

Install maven-jarsigner-plugin on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install maven-jarsigner-plugin

How To Uninstall maven-jarsigner-plugin on CentOS 7

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

sudo dnf remove maven-jarsigner-plugin

References

Summary

In this tutorial we learn how to install maven-jarsigner-plugin on CentOS 7 using yum and dnf.