eclipse默认的repo.maven.apache.org/maven2太慢-替换为aliyun源解决

eclipse操作步骤:

window=>左侧maven选项-User Settings,创建一个包含下面内容的xml文件,设置之,apply,重启IDE,感受吧!!!

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
   
       
 
       
            alimaven
            aliyun maven
            http://maven.aliyun.com/nexus/content/groups/public/
            central
       

 
       
            uk
            central
            Human Readable Name for this Mirror.
            http://uk.maven.org/maven2/
       

 
       
            CN
            OSChina Central
            http://maven.oschina.net/content/groups/public/
            central
       

 
       
            nexus
            internal nexus repository
            http://repo.maven.apache.org/maven2
            central
       

 
   

你可能感兴趣的:(java)