maven配置多个中央仓库

下载好maven解压,配置环境变量过程不再赘述,参考百度经验即可;

maven安装及maven环境变量配置

 

本文主要讲多仓库配置,如下:

1.在安装目录下的conf目录下找到settings文件;

maven配置多个中央仓库_第1张图片

2.配置好本地仓库

3.向下找到标签,可以搜索,找到后在 标签中间添加如下代码(配置多个中央仓库),保存后在IDE配置好settings文件的环境变量即可;

alimaven

central

aliyun maven

http://maven.aliyun.com/nexus/content/repositories/central/


        nexus-aliyun
        central
        Nexus aliyun
        http://maven.aliyun.com/nexus/content/groups/public
    

central

Maven Repository Switchboard

http://repo1.maven.org/maven2/

central

repo2

central

Human Readable Name for this Mirror.

http://repo2.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

你可能感兴趣的:(Java)