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 # 使配置生效
标签:opt,maven,Linux,Maven,bashrc,源码,M2,HOME,PATH
来源: https://www.cnblogs.com/F0x1tz/p/16445810.html