From 6366cfea94d522047eac89731bceabb74875a24b Mon Sep 17 00:00:00 2001 From: 8ga Date: Fri, 10 Jan 2025 14:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20mvn-home.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mvn-home.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 mvn-home.sh diff --git a/mvn-home.sh b/mvn-home.sh new file mode 100644 index 0000000..90f5d10 --- /dev/null +++ b/mvn-home.sh @@ -0,0 +1,5 @@ +#!/bin/bash +echo "export MAVEN_HOME=/usr/local/apache-maven-3.9.6" | tee -a /etc/profile +echo "export PATH=${PATH}:/usr/local/apache-maven-3.9.6/bin" | tee -a /etc/profile +source /etc/profile +mvn -v \ No newline at end of file