更新 java-mvn-home.sh

This commit is contained in:
8ga 2025-01-10 15:48:39 +08:00
parent 566223b20d
commit 7c1844beba

View File

@ -1 +1,7 @@
# #!/bin/bash
echo 'export JAVA_HOME=/usr/local/jdk1.8.0_202' >> /etc/profile
echo 'export MAVEN_HOME=/usr/local/apache-maven-3.9.6' >> /etc/profile
echo 'export PATH=${PATH}:${JAVA_HOME}/bin:${MAVEN_HOME}/bin' >> /etc/profile
source /etc/profile
java -version
mvn -v