Project

General

Profile

Actions

Apache Maven 2 Installation on Debian Etch


Currently, Maven 2 is not part of the Debian Etch standard distribution. So, you'll need to download and install it on your own.

The most recent version of Maven (2.1.0) can be retrieved on http://maven.apache.org/download.html. So, download the latest release and extract it to e.g. /opt/.

wget http://apache.easy-webs.de/maven/binaries/apache-maven-2.1.0-bin.tar.gz
tar xvfz apache-maven-2.1.0-bin.tar.gz -C /opt
ln -s /opt/apache-maven-2.1.0/ /opt/apache-maven

Add the following lines to /etc/profiles.

M2_HOME=/opt/apache-maven
export M2_HOME
M2=$M2_HOME/bin
PATH=$M2:$PATH
export PATH

Start a new shell, and you should be able to run

mvn --version
Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
Java version: 1.5.0_14
Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux" version: "2.6.18-6-xen-686" arch: "i386" Family: "unix"

Updated by Andreas Müller almost 2 years ago · 4 revisions