Linux 安装及配置 Maven
Haiya Lv3

准备工作

下载 apache-maven-x.x.x-bin.tar.gz: https://maven.apache.org/download.cgi

安装步骤

1
2
3
4
5
6
7
8
9
10
11
12
13
tar xvf apache-maven-x.x.x-bin.tar.gz
mv apache-maven-x.x.x /usr/local/apache-maven

vi ~/.bashrc
# 添加内容
export M2_HOME=/usr/local/apache-maven
export M2=$M2_HOME/bin
export PATH=$M2:$PATH

source ~/.bashrc

# 验证
mvn -v

References

由 Hexo 驱动 & 主题 Keep