centos7 maven 安装配置

1》获取maven压缩文件 wget http://www-us.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz

2》增加配置 vim /etc/profile


export M2_HOME=/usr/local/mall-dev/apache-maven-3.5.4
export PATH=${M2_HOME}/bin:${PATH}
 

3》重新加载配置文件  source /etc/profile

4》mvn --version 检查:

猜你喜欢

转载自blog.csdn.net/qq_42765276/article/details/85084867