Table of Contents
This tip is about the how to Configure and Run Apache Maven on Debian 11 Bullseye. So read this free guide, How to Configure and Run Apache Maven on Debian 11 Bullseye. If you have query related to same article you may contact us.
How to Configure and Run Apache Maven on Debian 11 Bullseye – Guide
In that tutorial, we’ll tell you the best way to install Apache Maven on Debian 11. For those of you who don’t have a clue, Apache Maven is a product project, board and insight tool. Given the idea of an enterprise object model, Maven can handle the construction, detailing, and documentation of an enterprise from a piece of focal data.
This article hopes you have basically fundamental information about Linux, you know how to use the shell and, above all, you will have your website on your own VPS. Installation is very straightforward and accepts that you are running under the root account, with the chance that you don’t need to add ‘sudo’ to the commands to gain root advantages. I’m going to show you how to gradually install Apache Maven on a Debian 11 (Bullseye).
prerequisites
To install Apache Maven on Linux, you need to have:
Before installing anything, it’s important to ensure that your local package index is up-To date. Run the command below to make sure you have the latest version of all packages on your server.
sudo apt-get update && sudo apt-get -y upgrade
Installing Java
java -version
sudo apt install -y openjdk-11-jdk -y
java -version
Installing Apache Maven on Debian 11
curl -O https://archive.apache.org/dist/maven/maven-3/3.8.2/binaries/apache-maven-3.8.2-bin.tar.gz
sudo tar -zxvf apache-maven-3.8.2-bin.tar.gzsudo mv apache-maven-3.8.2 / opt / maven
ls/opt/maven
sudo nano /etc/profile.d/maven.sh
export JAVA_HOME = / usr / lib / jvm / java-1.11.0-openjdk-amd64export M2_HOME = / opt / mavenexport PATH = ${M2_HOME} / bin: ${PATH}
source /etc/profile.d/maven.sh
mvn -version
sudo rm apache-maven-3.8.2-bin.tar.gz
mvn archetype: generate -DgroupId = {project-packaging} -DartifactId = {project-name} -DarchetypeArtifactId = {maven-template} -DinteractiveMode = famvn archetype: generate -DgroupId = com.mkyong.hashing -DartifactId = java-project – DarchetypeArtifactId = maven-archetype-quickstart -DinteractiveMode = false
Final note
I hope you like the guide How to Configure and Run Apache Maven on Debian 11 Bullseye. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.