How to Install Maven on Linux Mint 19 LTS Easy Guide

June 23rd, 2018 by thelinuxevangelist

Apache Maven 3 Linux Mint 19 Installation Guide

Hello Mint User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Latest Apache Maven 3.x on Linux Mint 19.x Tara LTS i386/amd64 Mate/Cinnamon/KDE/Xfce Desktop.

Sure that the Apache Maven is also in the Mint Apt Repositories, but if You want to be Certain of Getting-Installed Right the Latest Maven Release then Follow this Tutorial…

And Maven calls its build scripts Project Object Model (POM) files. These POM files are in XML, and each Maven project or module will have an accompanying pom.xml file.

Furthermore, a Project Management Tool such as Maven provides a Superset of features found in a Build Tool.

But in Addition to providing Build capabilities, Maven can also Run Reports, Generate a Web Site, and Managig Communication among members of a Working Team.

Finally, the Apache Maven 3 Linux Mint Setup Require a Working Oracle Java JDK 8+ Installation, so You will Find Link to Installing Oracle Java JDK on Mint.

How to Install Maven on Linux Mint 19 LTS  - Featured
  1. Open a Shell Terminal emulator window
    (Press “Enter” to Execute Commands)

    How to Install Maven on Linux Mint 19 LTS  - Open Terminal
  2. Download Apache Maven 3.x Binaries:

    Maven bin.tar.gz for Mint
  3. Double-Click on Archive and Extract into /tmp

    Or from Shell:

    tar xvzf apache-maven*.tar.gz -C /tmp/
  4. Verify that JDK 8+ is Installed on System

    java -version

    How-to Install Recommended Oracle Java JDK on Mint:

    Installing Oracle JDK for Mint
  5. Installing Maven Binaries
    First we Drop the Tarball:

    sudo rm /home/[myUser]/Downloads/apache-maven*bin.tar.gz

    If Got “User is Not in Sudoers file” then Look: Solution
    Then we Set the SuperUser as Owner:

    sudo chown -R root:root /home/[myUser]/Downloads/apache-maven*

    Finally, to Switch Maven contents:

    sudo mv /home/[myUser]/Downloads/apache-maven** /opt/
  6. Again Add Maven Binaries to User Path

    nano $HOME/.bashrc


    export PATH=$PATH:/opt/apache-maven-[X.Y.X]/bin

    Ctrl+X to Save and Exit from “nano” :)

    Load New SetUp:

    source $HOME/.bashrc
  7. Test Maven Installation

    mvn -version
  8. Quick-Start with Maven Projects Management:

    Maven Quick-Start Guide
  9. Quick-Start with Eclipse Java Developers on Mint:
    SetUp Eclipse for Java on Mint.

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,