makeporngreatagain.pro
yeahporn.top
hd xxx

Install Maven on CentOS 9

81

Step 1: Install Java 17 OpenJDK

sudo yum install java-17-openjdk

Step 2: Install wget and unzip

sudo yum install wget unzip -y

Step 3: Download and unzip Apache Maven

wget https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.zip
unzip apache-maven-3.9.6-bin.zip
mv apache-maven-3.9.6 maven
rm -f apache-maven-3.9.6-bin.zip

Step 4: Create the Maven environment file

sudo vim /etc/profile.d/maven.sh

Add the following lines:

export JAVA_HOME=/usr/lib/jvm/jre-openjdk
export M2_HOME=/opt/maven
export MAVEN_HOME=/opt/maven
export PATH=${M2_HOME}/bin:${PATH}

Save and exit the editor.

Step 5: Make the Maven environment file executable

sudo chmod +x /etc/profile.d/maven.sh

Step 6: Load the Maven environment file

source /etc/profile.d/maven.sh

Step 7: Verify Maven installation

mvn -version

Comments are closed, but trackbacks and pingbacks are open.

baseofporn.com https://www.opoptube.com
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.