File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments