Installing maven on Ubuntu by manual download

Posted by WebDevHobo on Server Fault See other posts from Server Fault or by WebDevHobo
Published on 2010-10-03T22:13:02Z Indexed on 2012/06/22 15:18 UTC
Read the original article Hit count: 211

Filed under:

To install Maven, I downloaded the latest version from the website and then followed these steps:

http://maven.apache.org/download.html#Installation

The last step, the version control, does not work. It says that 'mvn' is currently not installed and that I should type sudo apt-get install maven2

If I go directly to the mvn file itself, it does work:

root@ubuntu:~# /usr/local/apache-maven/apache-maven-2.2.1/bin/mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_21
Java home: /usr/java/jdk1.6.0_21/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-25-generic" arch: "i386" Family: "unix"

So, what am I doing wrong here? Or what would and apt-get install do extra that I might have forgotten?

© Server Fault or respective owner

Related posts about ubuntu-10.04