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