码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu下配置使用maven

时间:2015-02-25 18:26:32      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:

下载界面:

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:~$ 

 

Ubuntu下配置使用maven

标签:

原文地址:http://www.cnblogs.com/yshyee/p/4299854.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!