zoukankan      html  css  js  c++  java
  • maven设置本地仓库和远程仓库

    1.打开setting.xml文件

    2.搜索localrepository,找到设置本地仓库的位置

    3.将标签中的地址修改为你想要指定的仓库位置

    4.搜索mirrors,定位到指定设置镜像仓库的位置

    5.设置远程仓库,示例如下:

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

    6.保存文件即可

  • 相关阅读:
    HTML基础学习笔记
    CSS-精灵图片的使用(从一张图片中截图指定位置图标)
    侧边栏显示
    HTML <form> action 属性
    2018年寒假小记
    算法提高--接水问题
    基础练习--huffman
    ...
    基础算法
    枚举--最长单词--蓝桥杯
  • 原文地址:https://www.cnblogs.com/Mr-k404/p/12676289.html
Copyright © 2011-2022 走看看