How To Install maven-dependency-analyzer.noarch on Amazon Linux 2

In this tutorial we learn how to install maven-dependency-analyzer.noarch in Amazon Linux 2. maven-dependency-analyzer.noarch is Maven dependency analyzer

Introduction

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

What is maven-dependency-analyzer.noarch

Analyzes the dependencies of a project for undeclared or unused artifacts. Warning some cases are not detected (constants, annotations with source-only retention, links in javadoc) which can lead to wrong result if they are the only use of a dependency.

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

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

sudo yum -y install maven-dependency-analyzer.noarch

How To Uninstall maven-dependency-analyzer.noarch on Amazon Linux 2

To uninstall only the maven-dependency-analyzer.noarch package we can use the following command:

sudo yum remove maven-dependency-analyzer.noarch

maven-dependency-analyzer.noarch Package Contents on Amazon Linux 2

/usr/share/doc/maven-dependency-analyzer-1.3
/usr/share/doc/maven-dependency-analyzer-1.3/LICENSE
/usr/share/doc/maven-dependency-analyzer-1.3/NOTICE
/usr/share/java/maven-dependency-analyzer/maven-dependency-analyzer.jar
/usr/share/maven-effective-poms/JPP.maven-dependency-analyzer-maven-dependency-analyzer.pom
/usr/share/maven-fragments/maven-dependency-analyzer.xml
/usr/share/maven-poms/JPP.maven-dependency-analyzer-maven-dependency-analyzer.pom

References

Summary

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