Skip to content

Commit ad48adc

Browse files
committed
✏️ 修改版本
1 parent e905a28 commit ad48adc

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

codes/deploy/tool/maven/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
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` 路径下。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ echo -e "\n>>>>>>>>> install maven"
1313
mkdir -p /opt/maven
1414
cd /opt/maven
1515

16-
version=3.2.5
16+
version=3.5.4
1717
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
1818
tar -zxvf apache-maven-${version}-bin.tar.gz
1919

0 commit comments

Comments
 (0)