How To Install maven-war-plugin.noarch on Amazon Linux 2

In this tutorial we learn how to install maven-war-plugin.noarch in Amazon Linux 2. maven-war-plugin.noarch is Maven WAR Plugin

Introduction

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

What is maven-war-plugin.noarch

Builds a Web Application Archive (WAR) file from the project output and its dependencies.

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

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

sudo yum -y install maven-war-plugin.noarch

How To Uninstall maven-war-plugin.noarch on Amazon Linux 2

To uninstall only the maven-war-plugin.noarch package we can use the following command:

sudo yum remove maven-war-plugin.noarch

maven-war-plugin.noarch Package Contents on Amazon Linux 2

/usr/share/doc/maven-war-plugin-2.3
/usr/share/doc/maven-war-plugin-2.3/LICENSE
/usr/share/doc/maven-war-plugin-2.3/NOTICE
/usr/share/java/maven-war-plugin
/usr/share/java/maven-war-plugin/maven-war-plugin.jar
/usr/share/maven-effective-poms/JPP.maven-war-plugin-maven-war-plugin.pom
/usr/share/maven-fragments/maven-war-plugin.xml
/usr/share/maven-poms/JPP.maven-war-plugin-maven-war-plugin.pom

References

Summary

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