maven导入jar包慢的问题

来源:互联网 发布:网页病毒检测软件 编辑:程序博客网 时间:2024/03/29 21:38

默认是从国外服务器载的,在setting.xml中修改 mirrors 加入如下配置

        <mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>


<mirror> 
<id>uk</id>  
<mirrorOf>central</mirrorOf>  
<name>Human Readable Name for this Mirror.</name>  
<url>http://uk.maven.org/maven2/</url> 
</mirror>
 
<mirror>
<id>CN</id>
<name>OSChina Central</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
 
<mirror>
<id>nexus</id>
<name>internal nexus repository</name>
<!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>-->
<url>http://repo.maven.apache.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>

0 0
原创粉丝点击