zoukankan      html  css  js  c++  java
  • maven几个加速地址配置

    主要包含了阿里云,华为云以及腾讯云的镜像,profile 部分是可以不用的,使用镜像就可以了

    参考配置文件

    <?xml version="1.0" encoding="utf-8"?>
     
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">  
      <mirrors> 
        <mirror> 
          <id>nexus-aliyun</id>  
          <mirrorOf>central</mirrorOf>  
          <name>Nexus aliyun</name>  
          <url>http://maven.aliyun.com/nexus/content/groups/public</url> 
        </mirror>  
        <mirror> 
          <id>nexus-tencentyun</id>  
          <mirrorOf>*</mirrorOf>  
          <name>Nexus tencentyun</name>  
          <url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url> 
        </mirror>  
        <mirror> 
          <id>huaweicloud</id>  
          <mirrorOf>*</mirrorOf>  
          <url>https://repo.huaweicloud.com/repository/maven/</url> 
        </mirror> 
      </mirrors>  
      <profiles> 
        <profile> 
          <id>nexus-my</id>  
          <!--Enable snapshots for the built in central repo to direct -->  
          <!--all requests to nexus via the mirror -->  
          <repositories> 
            <repository> 
              <id>central</id>  
              <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
              <releases>
                <enabled>true</enabled>
              </releases>  
              <snapshots>
                <enabled>true</enabled>
              </snapshots> 
            </repository> 
          </repositories>  
          <pluginRepositories> 
            <pluginRepository> 
              <id>central</id>  
              <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
              <releases>
                <enabled>true</enabled>
              </releases>  
              <snapshots>
                <enabled>true</enabled>
              </snapshots> 
            </pluginRepository> 
          </pluginRepositories> 
        </profile> 
      </profiles>  
      <activeProfiles> 
        <activeProfile>local-repositories</activeProfile>  
        <activeProfile>central</activeProfile>  
        <activeProfile>default-build-param</activeProfile> 
      </activeProfiles> 
    </settings>
     
  • 相关阅读:
    打包成exe可执行文件的方法
    Html 重要单词归纳
    python基础---递归函数 知识点自查填空题
    python基础---内置函数 和 匿名函数 知识点自查填空题
    python基础---递归函数真题解析
    python 日记 day4。
    python 日记 day5 字典
    python 日记 day3
    python 日记 day4
    python 日记 day1
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/14383524.html
Copyright © 2011-2022 走看看