安裝maven 3.2.5

下載maven

http://maven.apache.org/download.cgi (版本本身選擇,我用的是3.2.5)
linux

解壓apache

tar -xzvf apache-maven-3.2.5-bin.tar.gz

配置環境變量

sudo vi /etc/profile

添加maven

export M2_HOME=/deploy/apache-maven-3.2.5
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

保存 spa

source profile


而後執行unix

mvn -version命令code

顯示orm

Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00)get

Maven home: /deploy/apache-maven-3.2.5io

Java version: 1.7.0_75, vendor: Oracle Corporationform

Java home: /deploy/jdk1.7.0_75/jre

Default locale: zh_CN, platform encoding: UTF-8

OS name: "linux", version: "3.13.0-32-generic", arch: "amd64", family: "unix"

相關文章
相關標籤/搜索