From ad48adce61facb23ea03590763d98a69a6e81ec7 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Sat, 29 Sep 2018 10:31:06 +0800 Subject: [PATCH] =?UTF-8?q?:pencil2:=20=E4=BF=AE=E6=94=B9=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/deploy/tool/maven/README.md | 4 +--- codes/deploy/tool/maven/install-maven3.sh | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/codes/deploy/tool/maven/README.md b/codes/deploy/tool/maven/README.md index 884e371..48deb9d 100644 --- a/codes/deploy/tool/maven/README.md +++ b/codes/deploy/tool/maven/README.md @@ -3,9 +3,7 @@ 使用方法: ```sh -wget --no-check-certificate --no-cookies https://raw.githubusercontent.com/dunwu/linux/master/codes/deploy/tool/maven/install-maven3.sh -chmod -R 777 install-maven3.sh -./install-maven3.sh +curl -o- https://raw.githubusercontent.com/dunwu/linux/master/codes/deploy/tool/maven/install-maven3.sh | bash ``` 脚本会下载解压 maven 到 `/opt/maven` 路径下。 diff --git a/codes/deploy/tool/maven/install-maven3.sh b/codes/deploy/tool/maven/install-maven3.sh index d7ef7ee..a70a945 100644 --- a/codes/deploy/tool/maven/install-maven3.sh +++ b/codes/deploy/tool/maven/install-maven3.sh @@ -13,7 +13,7 @@ echo -e "\n>>>>>>>>> install maven" mkdir -p /opt/maven cd /opt/maven -version=3.2.5 +version=3.5.4 wget --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 tar -zxvf apache-maven-${version}-bin.tar.gz