Search This Blog

Monday, June 15, 2020

Maven Manual Install to latest Version - Linux Ubuntu 16 14 18 20


cd /home/
 
wget https://downloads.apache.org/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
 

sudo tar -xvzf apache-maven-3.3.9-bin.tar.gz

sudo tar -xvzf apache-maven-3.3.9-bin.tar.gz
sudo tar -xvzf apache-maven-3.6.3-bin.tar.gz

sudo mv apache-maven-3.6.3 /opt/
cd /opt/
cd apache-maven-3.6.3/
ls


cd ..
sudo nano /etc/profile.d/mavenenv.sh




          export M2_HOME=/opt/apache-maven-3.6.3
          export MAVEN_HOME=${M2_HOME}
          export PATH=${M2_HOME}/bin:${PATH}

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


source /etc/profile.d/mavenenv.sh
 

mvn --version

No comments:

Hit Counter


View My Stats