linux-tutorial/codes/deploy/tool/maven/install-maven3.sh

11 lines
373 B
Bash
Raw Normal View History

2018-02-01 16:34:02 +08:00
#!/usr/bin/env bash
echo -e "\n>>>>>>>>> install maven"
mkdir -p /opt/software/maven
cd /opt/software/maven
version=3.5.2
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://mirrors.shuosc.org/apache/maven/maven-3/${version}/binaries/apache-maven-${version}-bin.tar.gz
tar -zxvf apache-maven-${version}-bin.tar.gz