国内较快的maven镜像

来源:互联网 发布:网络作家收入怎么算 编辑:程序博客网 时间:2024/06/08 09:49
转自:http://www.cnblogs.com/dingyingsi/p/3856456.html 
我们在开发过程中,用maven工具下载jar包时特别慢,这是由于访问国外网站较慢的缘故,其实我们可以在maven的配置文件conf中的setting中设置镜像,从而使下载文件更快。

  1. 国内连接maven官方的仓库更新依赖库,网速一般很慢,收集一些国内快速的maven仓库镜像以备用。  
  2.    
  3.   
  4. <mirror>  
  5.   
  6.       <id>CN</id>  
  7.       <name>OSChina Central</name>                                                                                                                         
  8.       <url>http://maven.oschina.net/content/groups/public/</url>  
  9.       <mirrorOf>central</mirrorOf>  
  10.   
  11.     </mirror>  
  12.   

  13.   
  14. <mirror>    
  15.       <id>repo2</id>    
  16.       <mirrorOf>central</mirrorOf>    
  17.       <name>Human Readable Name for this Mirror.</name>    
  18.       <url>http://repo2.maven.org/maven2/</url>    
  19. </mirror>    
  20. <mirror>    
  21.       <id>net-cn</id>    
  22.       <mirrorOf>central</mirrorOf>    
  23.       <name>Human Readable Name for this Mirror.</name>    
  24.       <url>http://maven.net.cn/content/groups/public/</url>     
  25. </mirror>    
  26. <mirror>    
  27.       <id>ui</id>    
  28.       <mirrorOf>central</mirrorOf>    
  29.       <name>Human Readable Name for this Mirror.</name>    
  30.      <url>http://uk.maven.org/maven2/</url>    
  31. </mirror>    
  32. <mirror>    
  33.       <id>ibiblio</id>    
  34.       <mirrorOf>central</mirrorOf>    
  35.       <name>Human Readable Name for this Mirror.</name>    
  36.      <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>    
  37. </mirror>    
  38. <mirror>    
  39.       <id>jboss-public-repository-group</id>    
  40.       <mirrorOf>central</mirrorOf>    
  41.       <name>JBoss Public Repository Group</name>    
  42.      <url>http://repository.jboss.org/nexus/content/groups/public</url>    
  43. </mirror>  
  44.   
  45.   
  46. <mirror>    
  47.       <id>JBossJBPM</id>   
  48.     <mirrorOf>central</mirrorOf>   
  49.     <name>JBossJBPM Repository</name>   
  50.     <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>  
  51. </mirror>  
  52. -------------------------spring maven--------------------------------  
  53. http://maven.springframework.org/release/  
  54. ---------------------------------------------------------------------  
  55. http://maven.antelink.com/content/repositories/central/  
  56. http://nexus.openkoala.org/nexus/content/groups/Koala-release/  
  57. http://maven.tmatesoft.com/content/groups/public/  
  58. http://mavensync.zkoss.org/maven2/  


0 0
原创粉丝点击