Ubuntu下配置使用maven

下载界面:

http://maven.apache.org/download.cgi

当前下载:apache-maven-3.2.5-bin.zip

解压到:/usr/lib/jvm/apache-maven-3.2.5

修改配置文件:

y@y:~$ sudo vim /etc/profile

#Maven3
export MAVEN_HOME=/usr/lib/jvm/apache-maven-3.2.5
export MAVEN_OPTS="-Xms128m -Xmx512m"
export PATH=$MAVEN_HOME/bin:$PATH

测试:

y@y:~$ source /etc/profile
y@y:~$ mvn -v
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00)
Maven home: /usr/lib/jvm/apache-maven-3.2.5
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.7.0_55/jre
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-24-generic", arch: "amd64", family: "unix"
y@y:~$ 

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。