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