解决IDEA Maven 下载依赖包速度过慢问题

解决IDEA Maven 下载依赖包速度过慢问题 ,jar包下载过慢,有一部分网络原因,很大一部分是因为需要请求到国外镜像仓库,响应比较慢

右键点击项目,找到maven,选择 Open ‘settings.xml’或者Create ‘settings.xml’

解决IDEA Maven 下载依赖包速度过慢问题_第1张图片

将以下代码粘入文件中,重启idea即可提高速度

idea超级镜像库,这是阿里云镜像库和junit镜像库












    
        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
    

    
    
        junit
        junit Address/
        http://jcenter.bintray.com/
        central
    


        

        
            
            nexus-aliyun
            *
            Nexus aliyun
            http://maven.aliyun.com/nexus/content/groups/public
        

        
            osc
            *
            http://maven.oschina.net/content/groups/public/
        

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

        
            net-cn
            central
            Human Readable Name for this Mirror.
            http://maven.net.cn/content/groups/public/
        

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

        
            ibiblio
            central
            Human Readable Name for this Mirror.
            http://mirrors.ibiblio.org/pub/mirrors/maven2/
        

        
            jboss-public-repository-group
            central
            JBoss Public Repository Group
            http://repository.jboss.org/nexus/content/groups/public
        

        
            JBossJBPM
            central
            JBossJBPM Repository
            https://repository.jboss.org/nexus/content/repositories/releases/
        

    


 

你可能感兴趣的:(idea项目,intellij-idea,maven,jar)