第一种:直接在项目的 pom.xml 文件中进行修改(不推荐,尤其是在多人协助的开发过程中非常的费事费力);
第二种:将 Maven 的远程仓库统一的配置到 Maven 的 Settings.xml 的配置文件中;
Maven 中央仓库地址大全
1、阿里中央仓库(首推1)
??alimaven
??aliyun maven
??http://maven.aliyun.com/nexus/content/groups/public/
2、camunda.com 中央仓库(首推2)
??activiti-repos2
??Activiti Repository 2
??https://app.camunda.com/nexus/content/groups/public
3、spring.io 中央仓库
??springsource-repos
??SpringSource Repository
http://repo.spring.io/release/
4、maven.apache.org 中央仓库
??central-repos
??Central Repository
??http://repo.maven.apache.org/maven2
5、maven.org 中央仓库
??central-repos1
??Central Repository 2
??http://repo1.maven.org/maven2/
6、alfresco.com 中央仓库(首推3)
??activiti-repos
??Activiti Repository
??https://maven.alfresco.com/nexus/content/groups/public
7、oschina 中央仓库(需要翻墙)
??oschina-repos
??Oschina Releases
??http://maven.oschina.net/content/groups/public
8、oschina thinkgem 中央仓库(需要翻墙)
?
??thinkgem-repos ?
??ThinkGem Repository
??http://git.oschina.net/thinkgem/repos/raw/master
9、java.net 中央仓库(需要翻墙)
??java-repos
??Java Repository
??http://download.java.net/maven/2/
10、github.com 中央仓库(需要翻墙)
?
??thinkgem-repos ?
??ThinkGem Repository 2
??https://raw.github.com/thinkgem/repository/master
11、ibiblio 镜像地址(这个也比较快)
????ibiblio
????Mirror from Maven ibiblio
????http://mirrors.ibiblio.org/pub/mirrors/maven2/
????central
12、repo1.maven.apache.org 镜像地址
????central
????Maven Repository Switchboard
????http://repo1.maven.apache.org/maven2/
????central
13、repo2 镜像地址
????repo2
????Mirror from Maven Repo2
????http://repo2.maven.org/maven2/
????central
14、UK 镜像地址
?uk central
?Mirror from UK
?http://uk.maven.org/maven2/
?central
15、JBoos 镜像地址
????jboss-public-repository-group
????JBoss Public Repository Group
????http://repository.jboss.org/nexus/content/groups/public
????central
16、Google 镜像地址
?google
?google maven
?https://maven.google.com/
?central
17、Maven china镜像地址
????maven.net.cn
????Mirror from Maven in china
????http://maven.net.cn/content/groups/public/
????central