开发者

Install Maven2 on Karmic

开发者 https://www.devze.com 2022-12-14 09:43 出处:网络
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

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:

  1. Download a Maven archive from the official website.
  2. Unzip it somewhere on your file system (I'm using /opt/apache-maven-2.2.1 which is symlinked as /opt/maven).
  3. Then export M2_HOME=/opt/maven (for example in your ~/.profile).
  4. Finally, add $M2_HOME/bin to your PATH (for example in your ~/.profile).
0

精彩评论

暂无评论...
验证码 换一张
取 消