How To Install libmaven-enforcer-plugin-java on Kali Linux
Introduction
In this tutorial we learn how to install libmaven-enforcer-plugin-java
on Kali Linux.
What is libmaven-enforcer-plugin-java
libmaven-enforcer-plugin-java is:
Enforcer is a Maven build rule execution framework. Maven Enforcer Plugin provides goals to control certain environmental constraints such as Maven version, JDK version and OS family along with many more standard rules:
- alwaysPass - Always passes… used to test plugin configuration.
- alwaysFail - Always fail… used to test plugin configuration.
- bannedDependencies - enforces that excluded dependencies aren’t included.
- evaluateBeanshell - evaluates a beanshell script.
- requireReleaseDeps - enforces that no snapshots are included as dependencies.
- requireReleaseVersion - enforces that the artifact is not a snapshot.
- requireMavenVersion - enforces the Maven version.
- requireJavaVersion - enforces the JDK version.
- requireOS - enforces the OS / CPU Archictecture.
- requirePluginVersions - enforces that all plugins have a specified version.
- requireProperty - enforces the existence and values of properties.
- requireFilesDontExist - enforces that the list of files do not exist.
- requireFilesExist - enforces that the list of files do exist.
- requireFilesSize - enforces that the list of files exist and are within a certain size range. Custom rules are easy to make with the maven-enforcer-rule-api.
There are three methods to install libmaven-enforcer-plugin-java
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libmaven-enforcer-plugin-java Using apt-get
Update apt database with apt-get
using the following command.
After updating apt database, We can install libmaven-enforcer-plugin-java
using apt-get
by running the following command:
Install libmaven-enforcer-plugin-java Using apt
Update apt database with apt
using the following command.
After updating apt database, We can install libmaven-enforcer-plugin-java
using apt
by running the following command:
Install libmaven-enforcer-plugin-java Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
After updating apt database, We can install libmaven-enforcer-plugin-java
using aptitude
by running the following command:
How To Uninstall libmaven-enforcer-plugin-java on Kali Linux
To uninstall only the libmaven-enforcer-plugin-java
package we can use the following command:
Uninstall libmaven-enforcer-plugin-java And Its Dependencies
To uninstall libmaven-enforcer-plugin-java
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
Remove libmaven-enforcer-plugin-java Configurations and Data
To remove libmaven-enforcer-plugin-java
configuration and data from Kali Linux we can use the following command:
Remove libmaven-enforcer-plugin-java configuration, data, and all of its dependencies
We can use the following command to remove libmaven-enforcer-plugin-java
configurations, data and all of its dependencies, we can use the following command:
Dependencies
libmaven-enforcer-plugin-java have the following dependencies:
- libbsh-java
- libcommons-codec-java
- libcommons-lang3-java
- libmaven-common-artifact-filters-java
- libmaven-dependency-tree-java
- libmaven3-core-java
- libplexus-container-default-java
- libplexus-utils-java
References
Summary
In this tutorial we learn how to install libmaven-enforcer-plugin-java
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.