Skip to content

Instantly share code, notes, and snippets.

@logicjwell
Created April 26, 2019 09:41
Show Gist options
  • Save logicjwell/2d1cff86ef37e34dc2128db0ac6f9411 to your computer and use it in GitHub Desktop.
Save logicjwell/2d1cff86ef37e34dc2128db0ac6f9411 to your computer and use it in GitHub Desktop.
[Maven中配置仓库镜像] #maven
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
<mirror>
<id>getui-nexus</id>
<name>getui-nexus</name>
<url>http://mvn.gt.igexin.com/nexus/content/repositories/releases</url>
<mirrorOf>*</mirrorOf>
</mirror>
<mirror>
<id>nexus-aliyun</id>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<mirrorOf>*,getui-nexus,central</mirrorOf>
</mirror>
<mirror>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment