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