maven 工具安装
Outline
1、maven版本:maven 3.3.9
Install
1、下载和解压 - Download(bin Zip) and Unzip
wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.ziphttp://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
unzip apache-maven-3.3.9-bin.zip
mv -rf apache-maven-3.3.9 /usr/local/
2、配置环境变量
vim /etc/profile
追加内容:
MAVEN_HOME=/usr/local/apache-maven-3.3.9
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
3、保存生效 - Save and Refresh
source /etc/profile
4、检查安装结果 - Check
mvn -v