Monday, February 4, 2013

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

The Guide Show Step-by-Step How-to Install and Getting-Started with the Latest Apache Maven 3.0.5+ for Linux Kubuntu 12.04 Precise Pangolin KDE4 Amd64 Desktop.

To Make the Entire Process Easier to Visualize and Retain the Article Includes the Basic Screenshots of the Essentials Steps Involved.

The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut more Easy & Digestive;)

Kubuntu-Baloon
  1. Download Apache Maven 3:

    Maven3 bin.tar.gz for Linux
  2. Double-Click on Archive and Extract Maven3 Binaries into /tmp Linux Kubuntu Extract Apache Maven
  3. Open a Terminal Window Linux Kubuntu Open Terminal
  4. Relocate Maven3 Binaries
    sudo su -c "mv /tmp/apache-maven-3* /opt"
  5. Check if Java JDK7 is Installed
    java -version

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

    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 Linux Kubuntu

    If Java JDK7 is Not Installed then:

    Install JDK 7 for Kubuntu
  6. Relocate Maven3
    sudo su -c "mv /tmp/apache-maven* /opt"
  7. Setup Maven 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

    source ~/.bashrc
  8. Test Apache Maven3 Installation
    mvn -version

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