How-to Install Latest Apache Maven on Ubuntu 16.10 Yakkety Linux Easy Guide

April 13th, 2017 by thelinuxevangelist

Maven Quick-Start on Ubuntu 16.10 Yakkety




The Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Latest Apache Maven 3.x on Ubuntu 16.10 Yakkety Yak 32/64bit GNU/Linux Desktop/Server.

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

The Apache Maven 3 SetUp Require a Working Oracle Java JDK 7+ Installation, so You will Find Link to Installing Oracle Java JDK on Ubuntu.

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.

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.

Quick-Start with Apache Maven on Ubuntu 16.10 Yakkety - Featured
  1. Download Apache Maven 3.x Binaries:

    Maven bin.tar.gz for Ubuntu
  2. Open Terminal Window
    Ctrl+Alt+t on desktop
    (Press “Enter” to Execute Commands)

    Quick-Start with Apache Maven on Ubuntu 16.10 Yakkety - Open Terminal
    Or LogIn into Shell…
  3. Double-Click on Archive and Extract into /tmp


    Or from Shell:

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

    java -version

    How-to Install Recommended Oracle Java JDK on Ubuntu:

    Installing Oracle JDK for Ubuntu
  5. Relocate Maven Binaries
    Login as SuperUser:

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution

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

    Set the SuperUser as Owner:

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

    Switch Contents with:

    mv /home/[myUser]/Downloads/apache-maven** /opt/

    To Achive the SuperUser session:

    exit
  6. Add Maven Binaries to User’s Path

    nano $HOME/.bashrc

    Append:

    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 Ubuntu:
    SetUp Eclipse for Java on Ubuntu.

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