How to Install Apache Maven 2.x on Ubuntu 16.04 Xenial LTS 32-64bit Linux Easy Guide

March 21, 2017 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Getting-Started with Maven 2 for Ubuntu 16.04 Xenial

You are Welcome! The Tutorial Shows You Step-by-Step How to Install and Getting-Started with Apache Maven 2.x on Ubuntu 16.04 Xenial Xerus LTS Linux.

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting and documentation from a central piece of information.

Apache Maven 2.x Quick Start for Ubuntu 16.04 Xenial LTS - Featured
  1. Open Terminal Window
    Ctrl+Alt+t on desktop
    (Press “Enter” to Execute Commands)

    Ubuntu 16.04 Xenial LTS Installing Maven 2.x - Open Terminal
  2. Download Apache Maven 2.x Binaries

    Maven tar.gz for Linux
  3. Extracting Maven 2 tar.gz Archive

    tar xvzf $HOME/Downloads/apache-maven-2*bin.tar.gz
    rm $HOME/Downloads/apache-maven-2*bin.tar.gz
  4. Relocating Maven 2 Folder.

    Local Installation:

    mv $HOME/Downloads/apache-maven-2* $HOME

    System Wide Installation:

    sudo su -c "chown -R root:root $HOME/Downloads/apache-maven-2*"
    sudo su -c "mv $HOME/Downloads/apache-maven-2* /opt/"
  5. Edit the User PATH.

    To Enable Maven 2 on the System

    nano $HOME/.bashrc


    export PATH=/opt/apache-maven-2[x.y.z]:$PATH

    Ctrl+x to Save & Exit from nano Editor :)
    Loading Setup:

  6. Testing Maven 2 Installation

    which mvn
    mvn -v

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

QuickChic Theme • Powered by WordPress