解压安装:
tar -zxvf apache-maven-3.3.9-bin.tar.gz
- 配置环境变量
- cd /etc/
- vi profile
-
在最后面加上M2_HOME=/usr/local/mypackage/maven/apache-maven-3.5.2
export PATH=${M2_HOME}/bin:${PATH} - source /etc/profile
- mvn -v
解压安装:
tar -zxvf apache-maven-3.3.9-bin.tar.gz
在最后面加上M2_HOME=/usr/local/mypackage/maven/apache-maven-3.5.2
export PATH=${M2_HOME}/bin:${PATH}