How To Install maven-invoker.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install maven-invoker.noarch on Amazon Linux 2.
What is maven-invoker.noarch
This API is concerned with firing a Maven build in a new JVM. It accomplishes its task by building up a conventional Maven command line from options given in the current request, along with those global options specified in the invoker itself. Once it has the command line, the invoker will execute it, and capture the resulting exit code or any exception thrown to signal a failure to execute. Input/output control can be specified using an InputStream and up to two InvocationOutputHandlers. This is a replacement package for maven-shared-invoker
We can use yum to install maven-invoker.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install maven-invoker.noarch.
Install maven-invoker.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-invoker.noarch using yum by running the following command:
sudo yum -y install maven-invoker.noarch
How To Uninstall maven-invoker.noarch on Amazon Linux 2
To uninstall only the maven-invoker.noarch package we can use the following command:
sudo yum remove maven-invoker.noarch
maven-invoker.noarch Package Contents on Amazon Linux 2
/usr/share/doc/maven-invoker-2.1.1
/usr/share/doc/maven-invoker-2.1.1/LICENSE
/usr/share/doc/maven-invoker-2.1.1/NOTICE
/usr/share/java/maven-invoker.jar
/usr/share/maven-effective-poms/JPP-maven-invoker.pom
/usr/share/maven-fragments/maven-invoker.xml
/usr/share/maven-poms/JPP-maven-invoker.pom
References
Summary
In this tutorial we learn how to install maven-invoker.noarch on Amazon Linux 2 using yum.