How-to Install Latest Apache Maven 3.0.5+ on Linux Ubuntu 12.04 Precise 32bit Easy Visual-Guide

September 3rd, 2012 by Regaz

The Guide Shows You Step-by-Step How-to Install and Getting-Started with the Latest Apache Maven 3.0.5+ for Ubuntu Linux 12.04 Precise Pangolin LTS Unity i386 Desktop.

To Make the Entire Easy to Understand and Visualize the Post Includes the Basic Screenshots of the essentials steps involved.

The Content give Focus Only to the Essentials Instructions and Commands to make it Easier to Understand;)

Apache on Ubuntu
  1. Download Apache Maven 3:

    Maven3 bin.tar.gz for Linux
  2. Double-Click on Archive and Extract Maven Binaries into /tmp Ubuntu Extract Apache Maven
  3. Open a Terminal Window
    (Press “Enter” to Execute Commands) Ubuntu Linux Open Terminal
  4. Relocate Maven Binaries
    sudo su

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

    mv /tmp/apache-maven-3* /opt
  5. Check if Java is Installed
    java -version

    Next you Need to know the Path to the Java JDK.

    If you Just Do Not Know How Try:

    locate bin/java | grep jdk

    If locate is Not Set-Up the Look this Guide:

    Set-Up and Use the locate Command on Ubuntu

    If Java JDK is Not Installed then:

    Install Oracle JDK for Ubuntu
  6. Setup Maven3 Path and Environment Variables
    nano ~/.bashrc

    Insert Something Like:

    export M3_HOME=/opt/apache-maven-3.0.4
    export M3=$M3_HOME/bin
    export PATH=$M3:$PATH
    export JAVA_HOME=<PathToJDK7>
    export PATH=$JAVA_HOME/bin:$PATH

    Load New .bashrc SetUp

  7. Test Maven3 Installation
    mvn -version

    If you Get the Maven Version the Apache Maven 3 has been Successfully Installed on Your Ubuntu Linux 12 :)

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