How-to Install Apache Maven 3 on Linux Debian Wheezy Xfce Amd64 Step-by-Step Easy-Visual Guide

January 30th, 2013 by Regaz



The Step-by-Step Guide Shows You How-to Install and Getting-Started with the Latest Apache Maven 3 Java Build Tool on Debian Linux 7 Wheezy Xfce Amd64 Desktop.

To Make the Entire Process Easier to Visualize and Retain 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;)

Inside the Post you Find a Link to Get Installed the Oracle-Sun Official Java JDK for Debian Linux.

Apache on Debian
  1. Download Maven:

    Maven bin.tar.gz for Linux
  2. Double-Click on Archive and Extract Maven3 Binaries into /tmpDebian Xfce Extract Apache Maven
  3. Open a Terminal Window
    (Press “Enter” to Execute Commands)
    Debian Linux Wheezy Xfce Open Terminal
  4. Relocate Maven Binaries
    su -c "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 Debian

    If Java JDK is Not Installed then:

    Install Oracle JDK for Debian
  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=
    export PATH=$JAVA_HOME/bin:$PATH

    Load New .bashrc SetUp

    source ~/.bashrc
  7. Test Maven3 Installation
    mvn -version

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

(Visited 2 times, 1 visits today)

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