maven工程添加新的类依赖,下载了一天也没有成功,可用镜像的方式解决,加快下载速度,其中阿里的镜像,经测试较快;避免长时间等待,浪费时间。
文章内容引自http://www.cnblogs.com/huzi007/p/5602087.html
在maven的config的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>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
</mirrors>
MAVEN下载速度慢解决方案
猜你喜欢
转载自peter1981.iteye.com/blog/2347773
今日推荐
周排行