zoukankan      html  css  js  c++  java
  • Intellij idea中maven加载jar包很慢的解决方案.

    默认加载的都是国外的源,我们可以配置国内的源.

    右键项目-->maven-->Open ''setting.xml'' 复制下面的代码进去.保存.

    我这里使用的版本是 ideaIU-14.1

     1 <mirrors>
     2   <!-- mirror
     3    | Specifies a repository mirror site to use instead of a given repository. The repository that
     4    | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     5    | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     6    |
     7   <mirror>
     8     <id>mirrorId</id>
     9     <mirrorOf>repositoryId</mirrorOf>
    10     <name>Human Readable Name for this Mirror.</name>
    11     <url>http://my.repository.com/repo/path</url>
    12   </mirror>
    13    -->
    14 
    15   <mirror>
    16     <id>alimaven</id>
    17     <name>aliyun maven</name>
    18     <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    19     <mirrorOf>central</mirrorOf>
    20   </mirror>
    21 
    22   <mirror> 
    23     <id>uk</id>  
    24     <mirrorOf>central</mirrorOf>  
    25     <name>Human Readable Name for this Mirror.</name>  
    26     <url>http://uk.maven.org/maven2/</url> 
    27   </mirror>
    28 
    29    <mirror>
    30     <id>CN</id>
    31     <name>OSChina Central</name>
    32     <url>http://maven.oschina.net/content/groups/public/</url>
    33     <mirrorOf>central</mirrorOf>
    34   </mirror>
    35 
    36   <mirror>
    37     <id>nexus</id>
    38     <name>internal nexus repository</name>
    39     <!-- <url>http://192.168.1.100:8081/nexus/content/groups/public/</url>-->
    40     <url>http://repo.maven.apache.org/maven2</url>
    41     <mirrorOf>central</mirrorOf>
    42   </mirror>
    43 
    44 </mirrors>
  • 相关阅读:
    关于Lucas定理、多项式Exp的一些思考
    Binet-Cauchy定理的证明
    CSP2019 树上的数 题解
    Graphviz学习
    Luogu P2221 [HAOI2012]高速公路题解
    CSP2019 树的重心 题解
    CSP2019 Emiya 家今天的饭 题解
    UVA10559 方块消除 Blocks 题解
    关于二次项系数为1的二元一次不定方程解法的探究
    关于对STL容器重载运算符的问题
  • 原文地址:https://www.cnblogs.com/orac/p/6427868.html
Copyright © 2011-2022 走看看