How To Install libmaven-enforcer-plugin-java on Debian 12

Learn how to install libmaven-enforcer-plugin-java on Debian 12 with this tutorial. libmaven-enforcer-plugin-java is Maven build rule execution framework

Introduction

In this tutorial we learn how to install libmaven-enforcer-plugin-java on Debian 12.

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 Debian 12. 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.

sudo apt-get update

After updating apt database, We can install libmaven-enforcer-plugin-java using apt-get by running the following command:

sudo apt-get -y install libmaven-enforcer-plugin-java

Install libmaven-enforcer-plugin-java Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmaven-enforcer-plugin-java using apt by running the following command:

sudo apt -y install libmaven-enforcer-plugin-java

Install libmaven-enforcer-plugin-java Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libmaven-enforcer-plugin-java using aptitude by running the following command:

sudo aptitude -y install libmaven-enforcer-plugin-java

How To Uninstall libmaven-enforcer-plugin-java on Debian 12

To uninstall only the libmaven-enforcer-plugin-java package we can use the following command:

sudo apt-get remove libmaven-enforcer-plugin-java

Uninstall libmaven-enforcer-plugin-java And Its Dependencies

To uninstall libmaven-enforcer-plugin-java and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libmaven-enforcer-plugin-java

Remove libmaven-enforcer-plugin-java Configurations and Data

To remove libmaven-enforcer-plugin-java configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libmaven-enforcer-plugin-java

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:

sudo apt-get -y autoremove --purge libmaven-enforcer-plugin-java

Dependencies

libmaven-enforcer-plugin-java have the following dependencies:

References

Summary

In this tutorial we learn how to install libmaven-enforcer-plugin-java package on Debian 12 using different package management tools: apt, apt-get and aptitude.