How To Install munge-maven-plugin on CentOS 7

In this tutorial we learn how to install munge-maven-plugin on CentOS 7. munge-maven-plugin is Munge Maven Plugin

Introduction

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

What is munge-maven-plugin

Munge is a purposely-simple Java preprocessor. It only supports conditional inclusion of source based on defined strings of the form “if[tag]”, “if_not[tag]”, “else[tag]”, and “end[tag]”. Unlike traditional preprocessors, comments, and formatting are all preserved for the included lines. This is on purpose, as the output of Munge will be distributed as human-readable source code. To avoid creating a separate Java dialect, the conditional tags are contained in Java comments. This allows one build to compile the source files without pre-processing, to facilitate faster incremental development. Other builds from the same source have their code contained within that comment. The format of the tags is a little verbose, so that the tags won’t accidentally be used by other comment readers such as javadoc. Munge tags must be in C-style comments; C++-style comments may be used to comment code within a comment. Like any preprocessor, developers must be careful not to abuse its capabilities so that their code becomes unreadable. Please use it as little as possible.

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

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

sudo yum -y install munge-maven-plugin

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

sudo dnf -y install munge-maven-plugin

How To Uninstall munge-maven-plugin on CentOS 7

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

sudo dnf remove munge-maven-plugin

References

Summary

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