File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33使用方法:
44
55``` sh
6- wget --no-check-certificate --no-cookies https://raw.githubusercontent.com/dunwu/linux/master/codes/deploy/tool/maven/install-maven3.sh
7- chmod -R 777 install-maven3.sh
8- ./install-maven3.sh
6+ curl -o- https://raw.githubusercontent.com/dunwu/linux/master/codes/deploy/tool/maven/install-maven3.sh | bash
97```
108
119脚本会下载解压 maven 到 ` /opt/maven ` 路径下。
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ echo -e "\n>>>>>>>>> install maven"
1313mkdir -p /opt/maven
1414cd /opt/maven
1515
16- version=3.2.5
16+ version=3.5.4
1717wget --no-check-certificate --no-cookies --header " Cookie: oraclelicense=accept-securebackup-cookie" http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/${version} /binaries/apache-maven-${version} -bin.tar.gz
1818tar -zxvf apache-maven-${version} -bin.tar.gz
1919
You can’t perform that action at this time.
0 commit comments