最新亚洲精品福利在线,欧美一区二区三区大片,久久91无码一区二区三区,色哟哟免费观看视频入口,美女裸露双奶头屁股无裸体

Maven設(shè)置鏡像或者代理服務(wù)器

時間:2024-04-13 14:27:28 類型:JAVA
字號:    

Maven默認訪問無法加載jar包,需要設(shè)置鏡像服務(wù)器或代理服務(wù)器

打開maven主目錄  conf/setting.xml文件

 <proxies>
   <!--  proxy
     | Specification for one proxy, to be used in connecting to the network.
       設(shè)置代理服務(wù)器
     | -->
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <host>127.0.0.1</host>
      <port>7890</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
   
  </proxies>

  

  <!-- mirrors
   | This is a list of mirrors to be used in downloading artifacts from remote repositories.
   | 設(shè)置鏡像
   |-->
  <mirrors>
       <mirror>
              <id>nexus-aliyun</id>
              <mirrorOf>*</mirrorOf>
              <name>Nexus aliyun</name>
              <url>http://maven.aliyun.com/nexus/content/groups/public</url>
       </mirror>
  </mirrors>


<