Debian Apache Maven 3 Installation Guide

Reference Apache Maven

Process

  1. Install Oracle Java
  2. Download Maven Binary
  3. Install Maven 3
    $ wget http://apache.cdpa.nsysu.edu.tw/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz
    $ tar zxvf apache-maven-3.2.3-bin.tar.gz
    $ sudo cp -r bin boot conf lib /usr/local/
    $ java -version
    java version "1.7.0_67"
    Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
    Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
    $ mvn -version
    Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-12T04:58:10+08:00)
    Maven home: /usr/local
    Java version: 1.7.0_67, vendor: Oracle Corporation
    Java home: /usr/lib/jvm/jdk-7-oracle-x64/jre
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux", version: "3.14-2-amd64", arch: "amd64", family: "unix"