<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Maven實戰_在setting.xml文件中同時配置local nexus和aliyun nexus

      為了提升maven下載jar包的速度,會使用阿里云私服進行加速,在setting.xml文件的mirrors節點下,添加如下配置:

      <mirror>
        <id>aliyun-nexus</id> 
        <mirrorOf>central</mirrorOf>
        <name>aliyun nexus</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
      </mirror>

      mirror可以攔截對遠程倉庫的請求,改變對目標倉庫的下載地址,一般情況下,maven下載jar包會默認到中央倉庫central進行下載,

      mirrorOf可以理解為“為某個倉庫(repository)的鏡像”,填寫的是repositoryId,當填寫為 * 時,代表匹配所有的倉庫,代理所有的倉庫。

      mirror相當于一個攔截器,它會攔截maven對remote repository的相關請求,重定向到mirror.url指定的地址。

       

      公司里面的項目使用了自定義jar包,那么,就要搭建自己的nexus,將鏡像配置改成如下:

      <mirror>
        <id>local-nexus</id> 
        <mirrorOf>central</mirrorOf>
        <name>local nexus</name>
        <url>http://ip:port/repository/maven-public/</url>
      </mirror>

      因為公司內部的私服是外網部署,并且帶寬很低,導致項目在使用阿里云流水線部署java構建時,下載jar包速度非常慢。

       

      這個時候就想著使用阿里云私服和自己公司的私服,下載spring相關的jar包到aliyun nexus進行下載,當需要用到自定義的jar時就使用local nexus

       

      我們需要用到setting.xml中的另一個配置profies,來配置自定義倉庫

      <profiles>
        <profile>
          <!-- 私服id -->
          <id>Nexus</id>
            <repositories>
              <repository>
                <id>aliyun-nexus</id>
                <url>https://maven.aliyun.com/repository/public</url>
                  <snapshots><enabled>true</enabled></snapshots>
                  <releases><enabled>true</enabled></releases>
              </repository>
             </repositories>
            
             <!--指定插件下載地址-->
             <pluginRepositories>
              <pluginRepository>
                 <id>aliyun-plugin-nexus</id>
                 <url>https://maven.aliyun.com/repository/public</url>
                 <snapshots><enabled>true</enabled></snapshots>
                 <releases><enabled>true</enabled></releases>
              </pluginRepository>
            </pluginRepositories>
        </profile>
      </profiles>
        
      <!--啟動私服倉庫 -->
      <activeProfiles>
        <activeProfile>Nexus</activeProfile>
      </activeProfiles>

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       

       參考文章:

      http://www.rzrgm.cn/Vincent-yuan/p/14974938.html

      http://www.rzrgm.cn/chuimber/p/18299166

      https://blog.csdn.net/weixin_43811057/article/details/132720550

       

      
      

       

      posted @ 2025-04-11 14:41  喻聰  閱讀(127)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 日韩高清国产中文字幕| 国产成人精彩在线视频| 北岛玲中文字幕人妻系列| 国产一区二区四区不卡| 在线观看中文字幕国产码| 97久久综合亚洲色hezyo| 久久久精品94久久精品| 亚洲性日韩精品一区二区三区| www插插插无码免费视频网站| 国产av丝袜熟女一二三| 在线播放亚洲成人av| 日韩av熟女人妻一区二| 国产国产午夜福利视频| 中文字幕日韩有码av| 国产精品夜夜春夜夜爽久久小说| 国产免费AV片在线看| 国产成人8X人网站视频| 久久国产乱子伦免费精品| 蜜臀91精品高清国产福利| 性奴sm虐辱暴力视频网站| 日韩V欧美V中文在线| 欧美人与动欧交视频| 免费网站看av片| 久久夜色精品国产网站| 女人爽到高潮的免费视频| 日韩在线观看 一区二区| 日韩精品亚洲专在线电影| 国内精品伊人久久久久影院对白 | 亚洲国产日韩伦中文字幕| 亚洲色大成网站WWW久久| 亚洲国产日韩A在线亚洲| 三级黄色片一区二区三区| 国产成人综合在线女婷五月99播放| 国产伦一区二区三区视频| 99久久精品国产一区二区蜜芽| 激情五月开心婷婷深爱| 欧美粗大| 欧美成人www免费全部网站| 日韩精品一区二区av在线| 国99久9在线 | 免费| 四虎影视国产精品永久在线|