Articles → DevOps → Install Apache Maven On The Linux Machine

Install Apache Maven On The Linux Machine


  1. Connect to the server.
  2. Go to the Opt folder using the following command.
  3. cd /

  4. The file is in the tar format. So, you have to extract the file. Use the following command.
  5. tar -xvf /home/karan/jdk-8u271-linux-x64.tar.gz

  6. Finally, set up the environment variables using the following command.
  7. export MAVEN_HOME=/opt/apache-maven-3.6.3
    export PATH=$PATH:$MAVEN_HOME/bin

How To Test If Apache Maven Is Installed Properly?

mvn -version

Picture showing how to check if  Apache Maven is installed on not

Click to Enlarge

Posted By  -  Karan Gupta
Posted On  -  Tuesday, November 24, 2020


Your Email Id  
Query/FeedbackCharacters remaining 250