Articles → LINUX → Install Apache Maven On The Linux Machine

Install Apache Maven On The Linux Machine






Installation Of JDK




sudo -i




wget https://download.java.net/java/GA/jdk13.0.1/cec27d702aa74d5a8630c65ae61e4305/9/GPL/openjdk-13.0.1_linux-x64_bin.tar.gz

tar -xvf openjdk-13.0.1_linux-x64_bin.tar.gz

mv jdk-13.0.1 /opt/




JAVA_HOME='/opt/jdk-13.0.1'

PATH="$JAVA_HOME/bin:$PATH"

export PATH



Installation Of Apache Maven




wget https://mirrors.estointernet.in/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz

tar -xvf apache-maven-3.6.3-bin.tar.gz

mv apache-maven-3.6.3 /opt/




M2_HOME='/opt/apache-maven-3.6.3'

PATH="$M2_HOME/bin:$PATH"

export PATH



Check The Maven Version




mvn -version


Picture showing the version of Maven installed on the machine
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, November 24, 2020
 
Updated On  -  Friday, March 31, 2023

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250