解决:IDEA中maven导jar包太慢

1.找到安装maven的路径
2.直接搜索settings.xml文件
3、复制代替

<mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
     <!-- <mirror>       -->
      <!-- <id>repo2</id>       -->
      <!-- <mirrorOf>central</mirrorOf>       -->
      <!-- <name>Human Readable Name for this Mirror.</name>       -->
      <!-- <url>http://repo2.maven.org/maven2/</url>       -->
    <!-- </mirror>    -->

    <mirror>
      <!--This sends everything else to /public -->
      <id>nexus</id>
      <mirrorOf>*</mirrorOf> 
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>
    <mirror>
      <!--This is used to direct the public snapshots repo in the 
          profile below over to a different nexus group -->
      <id>nexus-public-snapshots</id>
      <mirrorOf>public-snapshots</mirrorOf> 
      <url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
    </mirror>

  </mirrors>

你可能感兴趣的:(关于Maven的问题)