Maven中央仓库地址大全
一、仓库地址配置方式
关于 Maven 远程仓库地址的配置方式有两种:
第1种:直接在项目的 pom.xml 文件中进行修改(不推荐,尤其是在多人协助的开发过程中非常的费事费力);
第2种:将 Maven 的远程仓库统一的配置到 Maven 的 Settings.xml 的配置文件中。
二、仓库地址大全
1、阿里中央仓库(首选推荐)
<repository> <id>alimaven</id><name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
2、camunda.com 中央仓库(第2推荐使用)
<repository> <id>activiti-repos2</id> <name>Activiti Repository 2</name> <url>https://app.camunda.com/nexus/content/groups/public</url>
</repository>
3、spring.io 中央仓库
<repository> <id>springsource-repos</id> <name>SpringSource Repository</name> <url>http://repo.spring.io/release/</url>
</repository>
4、maven.apache.org 中央仓库
<repository> <id>central-repos</id> <name>Central Repository</name> <url>http://repo.maven.apache.org/maven2</url>
</repository>
5、maven.org 中央仓库
<repository> <id>central-repos1</id> <name>Central Repository 2</name> <url>http://repo1.maven.org/maven2/</url>
</repository>
6、alfresco.com 中央仓库(第3推荐使用)
<repository> <id>activiti-repos</id> <name>Activiti Repository</name> <url>https://maven.alfresco.com/nexus/content/groups/public</url>
</repository>
7、oschina 中央仓库(需要x墙哟)
<repository> <id>oschina-repos</id> <name>Oschina Releases</name> <url>http://maven.oschina.net/content/groups/public</url>
</repository>
8、oschina thinkgem 中央仓库(需要x墙哟)
<repository> <id>thinkgem-repos</id> <name>ThinkGem Repository</name> <url>http://git.oschina.net/thinkgem/repos/raw/master</url>
</repository>
三、Maven 阿里云(Aliyun)仓库
Maven 仓库默认在国外, 国内使用难免很慢,我们可以更换为阿里云的仓库。
修改 maven 根目录下的 conf 文件夹中的 settings.xml 文件,在 mirrors 节点上,添加内容如下:
<mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>阿里云公共仓库</name><url>https://maven.aliyun.com/repository/public</url></mirror>