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?
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
).
精彩评论