• 项目中maven依赖无法自动下载


    【解决方法】:

    安装目录conf--修改settting.xml文件
    在mirrors标签下添加子节点

     <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>alimaven</id>  
             <name>aliyun maven</name>  
             <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
             <mirrorOf>central</mirrorOf>        
         </mirror>
    
      </mirrors>

    如果解决了您的问题,请给个好评吧~~~///(^v^)\~~~

  • 相关阅读:
    转码解码问题
    时间问题
    弹框
    获取地址栏参数
    vue返回上一页面如果没有上一页面返回首页
    html知识点
    传统的事件类型
    vue的指令
    事件取消
    事件处理程序
  • 原文地址:https://www.cnblogs.com/yanl55555/p/12544314.html
Copyright © 2020-2023  润新知