zoukankan      html  css  js  c++  java
  • IDEA中maven项目导jar包太慢

    版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/PROGRAM_anywhere/article/details/53842058
    参考了网上的一些教程:
    1.找到安装maven的路径
    2.直接搜索settings.xml文件
    3.我反正是找到两个这样的文件,一个在maven2目录下一个在maven3目录下,我把两个文件的内容都改成如下:

    找到
    然后把下面代码直接copy替换就好了

    <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>

    也就是换成了阿里的源,不知道你们怎么样。我反正是秒下



  • 相关阅读:
    Android应用视觉效果设计技巧
    Android实现图片缩放与旋转
    schema 对象的简单介绍
    Index Scans 索引扫描
    Oracle Database Transaction Isolation Levels 事务隔离级别
    第一篇博客,纪念一下,终于开通啦!
    Linux 开机引导流程
    springBoot中tomcat默认端口修改
    面向服务架构之RPC原理与实例
    vs2008中xlslib与libxls库的编译及使用
  • 原文地址:https://www.cnblogs.com/xinxin1994/p/9811229.html
Copyright © 2011-2022 走看看