From 82f406df934c4eee7f0432e725cc23ab259e8e54 Mon Sep 17 00:00:00 2001 From: 8ga Date: Fri, 10 Jan 2025 13:50:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20ubuntu-mvn.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ubuntu-mvn.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ubuntu-mvn.sh diff --git a/ubuntu-mvn.sh b/ubuntu-mvn.sh new file mode 100644 index 0000000..6c9f50a --- /dev/null +++ b/ubuntu-mvn.sh @@ -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 \ No newline at end of file