1. 程式人生 > >Maven設定網路中央倉庫的映象

Maven設定網路中央倉庫的映象

使用國內阿里雲的映象進行設定

在Maven的安裝路徑下的conf下的settings.xml檔案中進行配置

在這裡插入圖片描述

將下面的程式碼複製到settings.py檔案中

	  <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
     </mirror>
     <mirror>
        <id>UK</id>
        <name>UK Central</name>
        <url>http://uk.maven.org/maven2</url>
        <mirrorOf>central</mirrorOf>
     </mirror>
     <mirror>
        <id>ibiblio.org</id>
        <name>ibiblio Mirror of http://repo1.maven.org/maven2</name>
        <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
        <mirrorOf>central</mirrorOf>
     </mirror>
     <mirror>
        <id>jboss-public-repository-group</id>
        <name>JBoss Public Repository Group</name>
        <url>http://repository.jboss.org/nexus/content/groups/pubic</url>
        <mirrorOf>central</mirrorOf>
     </mirror>

如下圖:
在這裡插入圖片描述


個人網站:http://xudailong.cc

關注「蛇崽網盤教程資源」公眾號 ,在微信後臺回覆「領取資源」,獲取IT資源200G乾貨大全。

更多資源請訪問:

https://blog.csdn.net/xudailong_blog/article/details/78762262

某課視訊教程

https://xudailong.cc/2018/09/30/muke-courses/

關注「蛇崽網盤教程資源」公眾號 ,在微信後臺回覆「領取資源」,獲取IT資源200G乾貨大全。

在微信後臺回覆「130個小程式」,即可免費領取享有匯入就能跑的微信小程式

在這裡插入圖片描述