您当前的位置: 首页 >  ide

蓝不蓝编程

暂无认证

  • 0浏览

    0关注

    706博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

IDEA中设置maven阿里云镜像

蓝不蓝编程 发布时间:2020-03-03 18:14:19 ,浏览量:0

背景

maven下载依赖库太慢了.

解决方案

设置阿里云镜像.

  1. 打开IDEA设置界面,搜索maven,勾选“User settigns file”后面的复选框
  2. 在对应路径下新建settings.xml文件,内容如下:



    
        
            alimaven
            central
            aliyun maven
            http://maven.aliyun.com/nexus/content/repositories/central/
        
        
            alimaven
            aliyun maven
            http://maven.aliyun.com/nexus/content/groups/public/
            central
        
        
            central
            Maven Repository Switchboard
            http://repo1.maven.org/maven2/
            central
        
        
            repo2
            central
            Human Readable Name for this Mirror.
            http://repo2.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
        
        
            google-maven-central
            Google Maven Central
            https://maven-central.storage.googleapis.com
            
            central
        
        
        
            maven.net.cn
            oneof the central mirrors in china
            http://maven.net.cn/content/groups/public/
            central
        
    

  1. 重启IDEA. 如果编译或者同步时显示如下包含了aliyun.com的url就表示ok了.
Downloading from alimaven: http://maven.aliyun.com/nexus/content/repositories/central/org/jetbrains/kotlin/kotlin-maven-plugin/1.3.60/kotlin-maven-plugin-1.3.60.pom
关注
打赏
1639405877
查看更多评论
立即登录/注册

微信扫码登录

1.4006s