其他分享
首页 > 其他分享> > Maven之基础

Maven之基础

作者:互联网

 

3.X

[安装]

1)下载

wget https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz --no-check-certificate

tar -zxvf apache-maven-3.8.6-bin.tar.gz

mv -f apache-maven-3.8.6 /usr/local/

2)添加环境变量

cat << EOF >> /etc/profile
export MAVEN_HOME=/usr/local/apache-maven-3.8.6
export PATH=${PATH}:${MAVEN_HOME}/bin
EOF;

# 生效
source /etc/profile

3)验证安装

mvn -v

 

标签:bin,maven,tar,基础,Maven,profile,apache,3.8
来源: https://www.cnblogs.com/xingxia/p/java_mvn.html