添加 ubuntu-mvn.sh

This commit is contained in:
8ga 2025-01-10 13:50:55 +08:00
parent 0878e44030
commit 82f406df93

8
ubuntu-mvn.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
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
echo "export MAVEN_HOME=/usr/local/apache-maven-3.9.6" | tee -a /etc/profile
echo "export PATH=${MAVEN_HOME}/bin:${PATH}" | tee -a /etc/profile
source /etc/profile
mvn -v