linux 安装maven

508 阅读1分钟

1.下载maven

wget mirrors.tuna.tsinghua.edu.cn/apache/mave…

2.解压maven

mv apache-maven-3.6.3 maven

3.修改配置文件

vim /etc/profile 添加

export MAVEN_HOME=/usr/local/maven
export PATH=${PATH}:${MAVEN_HOME}/bin

4.配置文件生效

source /etc/profile

5.查看maven安装完成

mvn -v