下载maven
apache-maven-3.9.4-bin.tar.gz
解压
tar -zxvf apache-maven-3.9.4-bin.tar.gz
添加环境变量
vim /etc/profile
export MAVEN_HOME=/usr/local/maven-3.9.4
export PATH=${PATH}
apache-maven-3.9.4-bin.tar.gz
tar -zxvf apache-maven-3.9.4-bin.tar.gz
vim /etc/profile
export MAVEN_HOME=/usr/local/maven-3.9.4
export PATH=${PATH}