(1)wget maven下载地址
(2)tar -zxvf maven的tar文件
(3)进入 /etc/profile 配置环境变量 如下:
export MAVEN_HOME=/root/apache-maven-3.0.5
export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH
重新加载配置文件:source /etc/profile
(4)检验:mvn -version
(1)wget maven下载地址
(2)tar -zxvf maven的tar文件
(3)进入 /etc/profile 配置环境变量 如下:
export MAVEN_HOME=/root/apache-maven-3.0.5
export PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$PATH
重新加载配置文件:source /etc/profile
(4)检验:mvn -version