From 4866bae6d3a4c5d13e9af5dba08b8c49eb339fb9 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Thu, 14 Feb 2019 15:52:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/deploy/tool/maven/README.md | 2 ++ codes/deploy/tool/maven/settings-aliyun.xml | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 codes/deploy/tool/maven/settings-aliyun.xml diff --git a/codes/deploy/tool/maven/README.md b/codes/deploy/tool/maven/README.md index 842ce1d..61efa54 100644 --- a/codes/deploy/tool/maven/README.md +++ b/codes/deploy/tool/maven/README.md @@ -7,3 +7,5 @@ curl -o- https://raw.githubusercontent.com/dunwu/OS/master/codes/deploy/tool/mav ``` 脚本会下载解压 maven 到 `/opt/maven` 路径下。 + +如果需要使用国内镜像(如 aliyun 镜像)加速,可以使用 settings-aliyun.xml 替换默认 settings.xml diff --git a/codes/deploy/tool/maven/settings-aliyun.xml b/codes/deploy/tool/maven/settings-aliyun.xml new file mode 100644 index 0000000..a996086 --- /dev/null +++ b/codes/deploy/tool/maven/settings-aliyun.xml @@ -0,0 +1,21 @@ + + + + + + + + aliyun + Aliyun + http://maven.aliyun.com/nexus/content/groups/public + central + + + repo2 + Mirror from Maven Repo2 + http://repo2.maven.org/maven2/ + central + + + \ No newline at end of file