1
0

添加 ubuntu-maven.md

This commit is contained in:
8ga 2025-01-10 11:10:53 +08:00
parent 31e0e7100f
commit dd5768a80c

31
ubuntu-maven.md Normal file
View File

@ -0,0 +1,31 @@
下载解压安装包
```
cd /usr/local
```
```
wget https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz
```
```
tar -zvxf apache-maven-3.9.6-bin.tar.gz
```
配置环境变量
```
vim /etc/profile
```
添加以下内容
```
export MAVEN_HOME=/usr/local/apache-maven-3.9.6
export PATH=${MAVEN_HOME}/bin:${PATH}
```
刷新
```
source /etc/profile
```
验证
```
mvn -v
```