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

October 9, 2014 | By the+gnu+linux+evangelist.

Getting-Started with Apache Maven 2 for Ubuntu 14.04 Trusty

Hi! The Tutorial shows you Step-by-Step How to Install and Getting-Started with Apache Maven 2.x on Ubuntu 14.04 Trusty Tahr 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 14.04 Trusty LTS - Featured
  1. Open Terminal Window
    Ctrl+Alt+T
    (Press “Enter” to Execute Commands)

    Ubuntu 14.04 Trusty LTS Installing Maven 2.x - Open Terminal

    In case first see: Terminal QuickStart Guide.

  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

    Append:

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

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

    bash
  6. Testing Maven 2 Installation

    which mvn
    mvn -v

QuickChic Theme • Powered by WordPress