目的是为了首先使用开源中国的maven镜像替代中央仓库的镜像,因为中央仓库下载jar依赖的速度太慢了,
然后配置spring的三个镜像是因为有阅读spring源码及使用spring-boot和spring-cloud框架的需要,
还有开源中国的maven仓库似乎缺少一些jar,这些jar在mvnrepository仓库中却能找到,所以把mvnrepository仓库也配上了。
最后就是加上你自己的maven私服了,当然maven私服要加在最前面,因为maven是按顺序来找仓库中的jar依赖的,在第一个仓库中找到就不会在第二个仓库上找了。
osc oschina http://maven.oschina.net/content/groups/public/ libs-release repo1 https://repo.spring.io/libs-release milestone repo2 https://repo.spring.io/milestone snapshot repo3 https://repo.spring.io/snapshot mvn mvnrepository http://mvnrepository.com/
广告我的博客:
spring源码系列: http://jisonami.iteye.com/admin/categories/353964
深入学习spring-boot系列: http://jisonami.iteye.com/admin/categories/357810