Is there a .deb for Maven2 on Karmic Koala? I see maven2, but it has 100+MB of dependencies (!). Is there a package that is only mvn and none of those dependencies?
+4
A:
The only .deb that exists is the one you are seeing in the repositories. So if you want to install it with apt-get
, you have to install all dependencies as well.
Personally, I've chosen to install it manually (mostly because Maven was broken in the RC of Karmic until they upgraded it to version 2.2.1 and because I'm now swapping between maven 2.x and maven 3.x). To do so, follow these steps:
- Download a Maven archive from the official website.
- Unzip it somewhere on your file system (I'm using
/opt/apache-maven-2.2.1
which is symlinked as/opt/maven
). - Then
export M2_HOME=/opt/maven
(for example in your~/.profile
). - Finally, add
$M2_HOME/bin
to yourPATH
(for example in your~/.profile
).
Pascal Thivent
2009-12-17 00:30:14
Thanks, I ended up doing this.
magneticMonster
2009-12-17 03:16:13
Yes, Pascal is very right here. The recommended way to install Maven on any Linux platform is exactly the process he outlined. The distributions try to do too much fancy acrobatics with the Maven repository, you can almost always assume that they've done something wrong. Cheers.
tobrien
2009-12-18 04:05:31