1.下载安装包
http://maven.apache.org/download.cgi
2.解压
3.配置maven环境变量
vim etc/profile
添加:
MAVEN_HOME=/usr/maven/apache-maven-3.5.0
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
4.source etc/profile
5.查看版本 mvn -version
1.下载安装包
http://maven.apache.org/download.cgi
2.解压
3.配置maven环境变量
vim etc/profile
添加:
MAVEN_HOME=/usr/maven/apache-maven-3.5.0
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
4.source etc/profile
5.查看版本 mvn -version