https://maven.apache.org/download.cgi # 官网
vim ~/.bashrc # 配置环境变量,添加如下内容。这里我将其解压到 /opt 目录 export M2_HOME=/opt/apache-maven-3.8.5 export PATH=$PATH:$M2_HOME/bin
source ~/.bashrc # 使配置生效