Skip to content

Commit 4866bae

Browse files
committed
更新文档
1 parent a67edc4 commit 4866bae

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

codes/deploy/tool/maven/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ curl -o- https://raw.githubusercontent.com/dunwu/OS/master/codes/deploy/tool/mav
77
```
88

99
脚本会下载解压 maven 到 `/opt/maven` 路径下。
10+
11+
如果需要使用国内镜像(如 aliyun 镜像)加速,可以使用 settings-aliyun.xml 替换默认 settings.xml
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
5+
6+
<!-- 使用 aliyun maven 仓库加速下载 -->
7+
<mirrors>
8+
<mirror>
9+
<id>aliyun</id>
10+
<name>Aliyun</name>
11+
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
12+
<mirrorOf>central</mirrorOf>
13+
</mirror>
14+
<mirror>
15+
<id>repo2</id>
16+
<name>Mirror from Maven Repo2</name>
17+
<url>http://repo2.maven.org/maven2/</url>
18+
<mirrorOf>central</mirrorOf>
19+
</mirror>
20+
</mirrors>
21+
</settings>

0 commit comments

Comments
 (0)