maven配置多个国内镜像

2023-11-13

一打开:

打开maven的settings.xml文件

二配置:

在约190行下添加如下代码:

<profiles>

<profile>

<id>aliyun</id>

<repositories>

<repository>

<id>aliyun</id>

<url>http://maven.aliyun.com/nexus/content/groups/public/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

<profile>

<id>ibiblio</id>

<repositories>

<repository>

<id>ibiblio</id>

<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

<profile>

<id>sprintio</id>

<repositories>

<repository>

<id>sprintio</id>

<url>https://repo.spring.io/libs-snapshot/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

<profile>

<id>nexus-tencentyun</id>

<repositories>

<repository>

<id>nexus-tencentyun</id>

<url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

<profile>

<id>huaweicloud</id>

<repositories>

<repository>

<id>huaweicloud</id>

<url>https://mirror.huaweicloud.com/repository/maven/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

<profile>

<id>jboss-public-repository-group</id>

<repositories>

<repository>

<id>jboss-public-repository-group</id>

<url>https://repository.jboss.org/nexus/content/groups/public</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

<profile>

<id>central</id>

<repositories>

<repository>

<id>central</id>

<url>https://repo1.maven.org/maven2/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

<profile>

<id>nexus-163</id>

<repositories>

<repository>

<id>nexus-163</id>

<name>Nexus 163</name>

<url>http://mirrors.163.com/maven/repository/maven-public/</url>

<releases>

<enabled>true</enabled>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

</snapshots>

</repository>

</repositories>

</profile>

</profiles>

<activeProfiles>

<activeProfile>aliyun</activeProfile>

<activeProfile>ibiblio</activeProfile>

<activeProfile>sprintio</activeProfile>

<activeProfile>nexus-tencentyun</activeProfile>

<activeProfile>huaweicloud</activeProfile>

<activeProfile>jboss-public-repository-group</activeProfile>

<activeProfile>central</activeProfile>

<activeProfile>nexus-163</activeProfile>

</activeProfiles>

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

maven配置多个国内镜像 的相关文章

随机推荐

  • 数据库技术的发展历史是怎么样的?

    数据库技术产生于20世纪60年代末70年代初 其主要主要研究如何存储 使用和管理数据 随着计算机硬件和软件的发展 数据库技术也不断地发展 数据库技术在理论研究和系统开发上都取得了辉煌的成就 从数据管理的角度看 数据库技术到目前共经历了如下三
  • 前端拿到后台接口返回的数据,并根据实际情况按需处理数据

    方法一 通过数据数组的map方法 创建一个假数据 用于模拟后台返回的多级数据 let options id 1 name 水果 children id 11 name 榴莲 prices 55 id 12 name 苹果 prices 45
  • AD常用快捷键总结

    1 shift s 键 切换单层显示 2 q Ctrl Q 英寸和毫米 尺寸切换 3 D R进入布线规则设置 其中 Clearance 是设置最小安全线间距 覆铜时候间距的 比较常用 4 CTRL 鼠标单击某个线 整个线的NET 网络 呈现
  • C盘如何扩容

    一 使用Windows自带的磁盘管理 1 1 清空D盘 单击D 然后选择 删除卷 然后D盘显示 未分配 1 2 C盘右键 选择 拓展卷 1 3 选择 未分配的 D盘 1 4 完成 可以看到C盘已经是合并后的大小了
  • linux学习:chmod

    Linux权限 1 Linux常见权限 444 dr r r 666 lrw r r 666 rw rw rw 700 drwx 744 drwxr r 755 drwxr xr x 777 drwxrwxrwx 我们从左到右看 第一二三位
  • ConfigurationSettings.AppSettings已过时的解决办法

    开始使用VS 2005 习惯性的使用ConfigurationSettings类来读取应用程序配置文件的信息时 却被编译器提示说 警告 1 System Configuration ConfigurationSettings AppSett
  • Anaconda中创建新的Python虚拟环境并安装Tensorflow框架

    一 问题 在安装Anaconda后 默认的Python版本是3 8 3 由于深度学习框架tensorflow的不同版本匹配的Python版本也不同 所以需要创建一个新的Python虚拟环境3 7版本 二 如何创建 打开Anaconda Pr
  • vue3 使用 vite 构建的项目打包后无法访问

    解决办法 1 安装 vitejs plugin legacy D npm i vitejs plugin legacy D 2 vite config js 添加配置 import legacy from vitejs plugin leg
  • springboot中对redis的操作封装工具类

    我们可以自己写一个工具类把redisTemplate进行封装 方便我们调用 这是一种很好的开发方式 简化开发 狂神教程中的封装 package com kuang utils import org springframework beans
  • HTML表单(属性/元素/输入类型/输入属性):看这一篇就够了

    HTML表单 HTML 表单用于搜集不同类型的用户输入
  • 使用Python绘画象棋棋盘(turtle)

    通过使用turtle绘画象棋棋盘 绘制象棋棋盘 import turtle t turtle Pen t width 2 设置画笔粗细 t speed 1 设置画笔移动速度 画竖线 t penup t goto 400 400 for i
  • Linux之线程-读写锁pthread_rwlock_t

    主要内容 1 互斥量及如何使用 2 什么是死锁 如何解决 3 什么是读写锁 如何使用 4 条件变量实现的生产消费者模型 5 信号量实现的生产消费者模型 3 读写锁 特点 读共享 写独占 写优先级高 读写锁仍然是一把锁 有不同的状态 未加锁
  • Linux添加PYTHONPATH方法以及3种修改环境变量方法

    方法一 用于当前终端 export PATH PATH lt 你的要加入的路径 gt 上面的方法只适用于当前终端 一旦当前终端关闭或在另一个终端中 则无效 方法二 用于当前用户 在用户主目录下有一个 bashrc 隐藏文件 可以在此文件中加
  • python数据结构:栈(匹配花括号、尖括号、圆括号、方括号)

    利用数据结构中的栈实现检查花括号 尖括号 圆括号 方括号是否匹配 相比较网上其他的方法 这种自定义类及函数的方法使用起来更加自动化 class StackNode object 初始化结点 def init self self data N
  • unity3d实现LOL中的相机控制功能

    using UnityEngine using System Collections public class CameraController MonoBehaviour private int SightDistancespeed 15
  • ovirt-node和ovirt-engine相连遇到的问题解决办法

    1 Host 192 168 70 7 does not comply with the cluster Default emulated machines The Hosts emulated machines are
  • CentOS7下安装配置Docker

    本文目录 step1 Docker下载安装 step2 设置docker 启动docker step3 docker基本操作 开启docker 查找镜像 拉取镜像 构建镜像 创建脚本文件 创建Dockerfile 构建 运行 step4 D
  • csdn积分获取攻略

    下载积分攻略 1 个人设置里进行手机绑定CSDN账户 奖励50分 右上角设置 账户安全 手机绑定 2 完成任务送若干分积分 http task csdn net 3 上传有效资源获取积分 上传非法 广告资源用户 将被扣除一定积分 严重者封号
  • 联想拯救者R9000P恢复原厂自带的win11系统

    之前重装win10之后 再想换回win11折腾了很久 现将方法分享出来 以便后面有相同需求的人可以较快的解决问题 文中无过程图片 因为我已经弄好了 不懂的地方可以私信或者评论 需要的东西 原厂自带系统 来自百度网盘超级会员V1的分享 hi
  • maven配置多个国内镜像

    一打开 打开maven的settings xml文件 二配置 在约190行下添加如下代码