maven-setting配置

xml 复制代码
<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">

 <localRepository>E:\repository_qk</localRepository>

  <pluginGroups>
  </pluginGroups>

   <proxies>
    </proxies>

  <servers>
    <server>
            <id>***********</id>
            <username>***********</username>
            <password>***********</password>
        </server>
  </servers>
   <mirrors>
<mirror>
        <id>nexus-tencentyun</id>
        <!-- 此配置避免了本仓库制品的拉取流量被切换到腾讯云镜像源,保证您在使用镜像加速的同时可以从本仓库拉取制品 -->
        <mirrorOf>!g-bghn0722-qiankun-edu-maven</mirrorOf>
        <name>Nexus tencentyun</name>
        <url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>
    </mirror>

    <mirror>
      <id>maven-default-http-blocker</id>
      <mirrorOf>external:http:*</mirrorOf>
      <name>Pseudo repository to mirror external repositories initially using HTTP.</name>
      <url>http://0.0.0.0/</url>
      <blocked>true</blocked>
    </mirror>
  </mirrors>

    <profiles>
<profile>
          <id>Repository Proxy</id>
          <activation>
              <activeByDefault>true</activeByDefault>
          </activation>
          <repositories>
              <repository>
                  <id>***********</id>
                  <name>maven</name>
                  <url>***********</url>
                  <releases>
                      <enabled>true</enabled>
                  </releases>
                  <snapshots>
                      <enabled>true</enabled>
                  </snapshots>
              </repository>
          </repositories>
      </profile>

  </profiles>
</settings>
相关推荐
9号达人20 分钟前
Jackson序列化让验签失败?破解JSON转义陷阱
java·后端·面试
Evan芙23 分钟前
使用inotify + rsync和sersync实现文件的同步,并且总结两种方式的优缺点
java·服务器·网络
爱笑的眼睛1130 分钟前
PyTorch自动微分:超越基础,深入动态计算图与工程实践
java·人工智能·python·ai
爱吃土豆的马铃薯ㅤㅤㅤㅤㅤㅤㅤㅤㅤ38 分钟前
java实现登录:多点登录互踢,30分钟无操作超时
java·前端
Three K1 小时前
Redisson限流器特点
java·开发语言
Halo_tjn1 小时前
Java 多线程机制
java·开发语言·windows·计算机
Jeff-Nolan1 小时前
C++运算符重载
java·开发语言·c++
她说..1 小时前
Spring AOP场景3——接口防抖(附带源码)
java·后端·spring·java-ee·springboot
计算机毕设指导61 小时前
基于微信小程序的积分制零食自选平台【源码文末联系】
java·spring boot·mysql·微信小程序·小程序·tomcat·maven