Maven 添加国内镜像

镜像代码

以下三个镜像都行

 1 <!-- 添加镜像地址 -->
 2      <mirror>
 3       <id>alimaven</id>
 4       <name>aliyun maven</name>
 5       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
 6       <mirrorOf>central</mirrorOf>
 7     </mirror>    
 8     <mirror>
 9       <id>repo2</id>
10       <mirrorOf>central</mirrorOf>
11       <name>Human Readable Name for this Mirror.</name>
12       <url>http://repo2.maven.org/maven2/</url>
13     </mirror>
14 
15     <mirror>
16       <id>ui</id>
17       <mirrorOf>central</mirrorOf>
18       <name>Human Readable Name for this Mirror.</name>
19       <url>http://uk.maven.org/maven2/</url>
20     </mirror>
21     
View Code

如图

posted @ 2019-03-21 21:04  Angry-rookie  阅读(4687)  评论(0)    收藏  举报