下載maven http://maven.apache.org/download.cgiapache
配置環境變量windowswindows
MAVEN_HOME = D:\apache-maven-3.2.5,而後添加到pathbash
配置環境變量maven
在/etc/profile中添加如下幾行code
MAVEN_HOME=/usr/local/maven3 export MAVEN_HOME export PATH=${PATH}:${MAVEN_HOME}/bin
執行source /etc/profile
使環境變量生效class