首页 > 其他分享 >[Maven基础]-- maven的setting.xml配置国内常用静态源

[Maven基础]-- maven的setting.xml配置国内常用静态源

时间:2022-11-03 14:34:47浏览次数:40  
标签:xml http mirrors -- maven2 maven ibiblio org


<?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">
<localRepository>D:\\repository</localRepository>
<pluginGroups>
</pluginGroups>

<proxies>

</proxies>

<servers>

</servers>
<!---配置国内静态源->
<mirrors>
<mirror>
<id>mirrors.ibiblio.org</id>
<name>mirrors.ibiblio.org</name>
<url>http://repo1.maven.org/maven2/ </url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>mirrors.ibiblio.org</id>
<name>mirrors.ibiblio.org</name>
<url>http://mirrors.ibiblio.org/maven2/</url>
<mirrorOf>central2</mirrorOf>
</mirror>
<mirror>
<id>nexus-tmatesoft</id>
<mirrorOf>central3</mirrorOf>
<name>Nexus tmatesoft</name>
<url>http://maven.tmatesoft.com/content/groups/public/</url>
</mirror>
<mirror>
<id>CN</id>
<name>OSChina Central</name>
>
<mirrorOf>central4</mirrorOf>
</mirror>

<mirror>
<id>repo2</id>
<mirrorOf>central5</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
<id>net-cn</id>
<mirrorOf>central6</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://maven.net.cn/content/groups/public/</url>
</mirror>
<mirror>
<id>ui</id>
<mirrorOf>central7</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://uk.maven.org/maven2/</url>
</mirror>
<mirror>
<id>ibiblio</id>
<mirrorOf>central8</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central9</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>


<mirror>
<id>JBossJBPM</id>
    <mirrorOf>central10</mirrorOf>
    <name>JBossJBPM Repository</name>
    <url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
</mirror>

</mirrors>
<profiles>
<profile>
<id>jdk-1.7</id>
<activation>
<jdk>1.7</jdk>
</activation>
<repositories>
<repository>
<id>repo</id>
<name>repo</name>
<url>http://repo1.maven.org/maven2/</url>
<layout>default</layout>
<snapshotPolicy>always</snapshotPolicy>
</repository>
<repository>
<id>jboss</id>
<name>jboss</name>
<url>http://repository.jboss.com/maven2/</url>
<layout>default</layout>
<snapshotPolicy>always</snapshotPolicy>
</repository>
<repository>
<id>sona</id>
<name>sona</name>
<url>http://repository.sonatype.org/content/groups/public/ </url>
<layout>default</layout>
<snapshotPolicy>always</snapshotPolicy>
</repository>
</repositories>
</profile>
</profiles>

</settings>

一般不推荐使用,因为国内的镜像可能不完整!

 

标签:xml,http,mirrors,--,maven2,maven,ibiblio,org
From: https://blog.51cto.com/u_13966077/5819849

相关文章

  • C#项目实例中读取并修改App.config文件
    C#项目实例中读取并修改App.config文件 本文将谈谈C#项目实例中读取并修改App.config文件,AppConfig最重要的功能就是,它将命令行选项和配置文件选项统一到一种数据结构......
  • [MongoD基础]-- 简化MongoAPI第二部分--MongoTemplate
    spring-data-mongo的MongoTemplate开发1、在实体类Customer.java中引入注解表明转换方式@Document//文档publicclassCustomer{@Id......
  • 微服务
    在微服务开过程中,我经常会思考的问题包括进程间架构设计、进程间通信方式、非功能需设计、进程内架构、设计如何落地、微服务治理等各种问题,我期望为我个人准备一套“利器......
  • [面试]-- python常见面试问题
    1、哪些对象是可迭代的?怎样实现迭代协议?答:(1)实现了迭代协议的对象都可以迭代,如元组、列表、字典表等    (2)对象中包含内置的next()和__next__()函数,如果迭代对象......
  • 10.内置函数
    截止到python3.9,一共有60多个内置函数,本篇对常用的函数进行分类罗列一下,对于文档请查看https://docs.python.org/zh-cn/3.9/library/functions.html1.数学运算abs(x):......
  • [MongoDB基础]-- (一)简介
    一、定义高性能、开源、无模式的文档型NoSql数据库注意:1、文件存储格式为BSON(一种Json的扩展,2进制表达、效率高)            2、模式自由:无表结构     ......
  • layui 分页-列表数据删除重新渲染分页问题
    newVue({el:'#jobIndex',data:{userInfo:{},jobList:[],jobForm:{username:'',password:'',......
  • [MongoDB基础]-- 简化MongoAPI(spring-data-mongo)第一部分
    Sring-data-mongo框架 1、定义:基于Spring开发的一个简化MongoAPI操作的java框架,其使用方式与spring一致2、Spring-Data-Mongo简化的MongoAPI操作内容a、重复性的代码-----......
  • 从0开始学会手机摄影
    1.提前做好拍摄准备和规划准备脚架的重要性参数配置延时性的选择拍选的角度或者是否穿什么样颜色的衣服梅里雪山利用脚架拍摄延时摄影2.具备一定的场景分析能......
  • 【亲测有效】有喜马拉雅VIP,XM文件转换MP3方法,批量下载VIP音频方法
    最近在听喜马拉雅小说,购买了VIP会员,但是每次打开喜马拉雅APP加载过程、查找过程什么的比较麻烦,想要下载到本地直接听。 电脑端下载的是XM加密文件,想寻求一种直接下载非......