在上一篇文章中完成了 《Maven镜像地址大全 》,后来又花了时间又去收集并整理了关于 maven 远程仓库地址,并整理于此,关于 Maven 远程仓库地址的配置方式有两种,
第一种:直接在项目的 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 中央仓库(需要x墙哟)
oschina-repos Oschina Releases http://maven.oschina.net/content/groups/public
8、oschina thinkgem 中央仓库(需要x墙哟)
thinkgem-repos ThinkGem Repository http://git.oschina.net/thinkgem/repos/raw/master
9、java.net 中央仓库(需要x墙哟)
java-repos Java Repository http://download.java.net/maven/2/
10、github.com 中央仓库(需要x墙哟)
thinkgem-repos2 ThinkGem Repository 2 https://raw.github.com/thinkgem/repository/master
Maven 中央仓库配置示例
这里使用 Dubbo官方的中央仓库为示例,在 settings.xml 的 profiles 节点中添加如下内容:
jdk‐1.8 true1.8 1.8 1.8 1.8 sonatype-nexus-snapshots https://oss.sonatype.org/content/repositories/snapshots false true
如下图:
注意:这儿的jdk-1.8表示,在开发环境中使用jdk-1.8时,则激活该环境;
到此这篇关于Maven中央仓库地址配置大全的文章就介绍到这了,更多相关Maven中央仓库地址内容请搜索考高分网以前的文章或继续浏览下面的相关文章希望大家以后多多支持考高分网!



