windows搭建maven私有倉庫


一、參考地址

1、https://www.cnblogs.com/wuwei928/p/10338307.html

 2、https://blog.csdn.net/shaoyu_zhu_88/article/details/78978925

 

二、maven配置文件(settings文件配置)

添加私有鏡像:

  <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>
    <mirror>
        <id>lt</id>
        <name>Maven Repository Switchboard</name>
        <url>http://127.0.0.1:8080/nexus-2.14.2-01/content/groups/public/</url>
        <mirrorOf>*</mirrorOf>
    </mirror>
  </mirrors>

三、上傳本地jar包

參考我的另一篇博客:https://www.cnblogs.com/cq-yangzhou/p/10709934.html

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM