maven仓库中心mirrors配置多个下载中心(执行最快的镜像)

网友投稿 680 2023-05-17

maven仓库中心mirrors配置多个-中心(执行最快的镜像)

maven仓库中心mirrors配置多个-中心(执行最快的镜像)

日常生活中,我们使用maven-需要的jar包,但是很多的时候由于中央仓库没有,所以我们没有办法-到需要的jar包,手动去-上,然后放入到lib下,然后build path有的时候会感到很不舒服,不是很是不实用。所以此处可以在maven的设置中心添加多个-仓库,这样丰富了中央仓库的-。

本人使用的本地的maven(版本为3.1.1)。具体配置如下:

1、配置idea指定本地仓库的maven

file-->Other Settings-->default settings-->搜索maven

2、配置本地maven(本地maven仓库存放的位置)

3、核心配置(配置多个中央-仓库中心)

mirrorId

repositoryId

Human Readable Name for this Mirror.

http://my.repository.com/repo/path

-->

repo2

central

Human Readable Name for this Mirror.

http://repo2.maven.org/maven2/

  

      alimaven  

      aliyun maven  

      http://maven.aliyun.com/nexus/content/groups/public/  

      central          

    

ui

central

Human Readable Name for this Mirror.

http://uk.maven.org/maven2/

ibiblio

central

Human Readable Name for this Mirror.

http://mirrors.ibiblio.org/pub/mirrors/maven2/

jboss-public-repository-group

central

JBoss Public Repository Group

http://repository.jboss.org/nexus/content/groups/public

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:内测招募中:FinClip 开发者工具重构升级!性能飞跃,体验有礼
下一篇:maven仓库repositories和mirrors的配置及区别详解
相关文章

 发表评论

暂时没有评论,来抢沙发吧~