Project

General

Profile

Maven2InstallDebianEtch » History » Version 1

Lutz Suhrbier, 04/01/2009 04:23 PM

1 1 Lutz Suhrbier
2 1 Lutz Suhrbier
# Apache Maven 2 Installation on Debian Etch
3 1 Lutz Suhrbier
4 1 Lutz Suhrbier
5 1 Lutz Suhrbier
Currently, Maven 2 is not part of the Debian Etch standard distribution. So, you'll need to download and install it on your own.
6 1 Lutz Suhrbier
7 1 Lutz Suhrbier
8 1 Lutz Suhrbier
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/_.
9 1 Lutz Suhrbier
10 1 Lutz Suhrbier
~~~
11 1 Lutz Suhrbier
wget http://apache.easy-webs.de/maven/binaries/apache-maven-2.1.0-bin.tar.gz
12 1 Lutz Suhrbier
tar xvfz apache-maven-2.1.0-bin.tar.gz -C /opt
13 1 Lutz Suhrbier
ln -s /opt/apache-maven-2.1.0/ /opt/apache-maven
14 1 Lutz Suhrbier
~~~
15 1 Lutz Suhrbier
16 1 Lutz Suhrbier
Add the following lines to _/etc/profiles_.
17 1 Lutz Suhrbier
18 1 Lutz Suhrbier
~~~
19 1 Lutz Suhrbier
M2_HOME=/opt/apache-maven
20 1 Lutz Suhrbier
export M2_HOME
21 1 Lutz Suhrbier
M2=$M2_HOME/bin
22 1 Lutz Suhrbier
PATH=$M2:$PATH
23 1 Lutz Suhrbier
export PATH
24 1 Lutz Suhrbier
~~~
25 1 Lutz Suhrbier
26 1 Lutz Suhrbier
Start a new shell, and you should be able to run
27 1 Lutz Suhrbier
28 1 Lutz Suhrbier
~~~
29 1 Lutz Suhrbier
mvn --version
30 1 Lutz Suhrbier
Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
31 1 Lutz Suhrbier
Java version: 1.5.0_14
32 1 Lutz Suhrbier
Java home: /usr/lib/jvm/java-1.5.0-sun-1.5.0.14/jre
33 1 Lutz Suhrbier
Default locale: de_DE, platform encoding: UTF-8
34 1 Lutz Suhrbier
OS name: "linux" version: "2.6.18-6-xen-686" arch: "i386" Family: "unix"
35 1 Lutz Suhrbier
~~~
Add picture from clipboard (Maximum size: 40 MB)