lubuntu安装maven
原文转自:jobar.iteye.com/blog/1776747
1 apt-cache search maven
获取所有可用的maven包
2 sudo apt-get install maven
开始安装 下载大约114M的东东
3 mvn --version
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_38, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-22-generic", arch: "i386", family: "unix"
确认maven安装成功
4 maven被安装在这个地方
ll /usr/share/maven
total 32
drwxr-xr-x 6 root root 4096 Jan 27 19:32 ./
drwxr-xr-x 294 root root 12288 Jan 27 19:32 ../
drwxr-xr-x 2 root root 4096 Jan 27 19:32 bin/
drwxr-xr-x 2 root root 4096 Jan 27 19:32 boot/
lrwxrwxrwx 1 root root 10 May 28 2012 conf -> /etc/maven/
drwxr-xr-x 2 root root 4096 Jan 27 19:32 lib/
drwxr-xr-x 2 root root 4096 Jan 27 19:32 man/
5 配置文件在这里
ll /etc/maven/
total 32
drwxr-xr-x 2 root root 4096 Jan 27 19:33 ./
drwxr-xr-x 145 root root 12288 Jan 27 19:33 ../
-rw-r--r-- 1 root root 184 Jan 21 2012 m2.conf
-rw-r--r-- 1 root root 10224 Jan 21 2012 settings.xml
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。