《 Maven 中央仓库地址大全 》

在上一篇文章中完成了 《 Maven镜像地址大全 》,后来又花了时间又去收集并整理了关于 maven 远程仓库地址,并整理于此,关于 Maven 远程仓库地址的配置方式有两种,

第一种:直接在项目的 pom.xml 文件中进行修改(不推荐,尤其是在多人协助的开发过程中非常的费事费力);

第二种:将 Maven 的远程仓库统一的配置到 Maven 的 Settings.xml 的配置文件中;

Maven 中央仓库地址大全

1、阿里中央仓库(首推1)


  1. <repository>  
  2.     <id>alimaven</id>
  3.     <name>aliyun maven</name>
  4.     <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  5. </repository> 

2、camunda.com 中央仓库(首推2)


  1. <repository>  
  2.     <id>activiti-repos2</id>  
  3.     <name>Activiti Repository 2</name>  
  4.     <url>https://app.camunda.com/nexus/content/groups/public</url>  
  5. </repository>  

3、spring.io 中央仓库


  1. <repository>  
  2.     <id>springsource-repos</id>  
  3.     <name>SpringSource Repository</name>  
  4.     <url>http://repo.spring.io/release/</url>  
  5. </repository>

4、maven.apache.org 中央仓库


  1. <repository>  
  2.     <id>central-repos</id>  
  3.     <name>Central Repository</name>  
  4.     <url>http://repo.maven.apache.org/maven2</url>  
  5. </repository>

5、maven.org 中央仓库


  1. <repository>  
  2.     <id>central-repos1</id>  
  3.     <name>Central Repository 2</name>  
  4.     <url>http://repo1.maven.org/maven2/</url>  
  5. </repository>

6、alfresco.com 中央仓库(首推3)


  1. <repository>  
  2.     <id>activiti-repos</id>  
  3.     <name>Activiti Repository</name>  
  4.     <url>https://maven.alfresco.com/nexus/content/groups/public</url>  
  5. </repository>  

7、oschina 中央仓库(需要x墙哟)


  1. <repository>  
  2.     <id>oschina-repos</id>  
  3.     <name>Oschina Releases</name>  
  4.     <url>http://maven.oschina.net/content/groups/public</url>  
  5. </repository>  

8、oschina thinkgem 中央仓库(需要x墙哟)


  1. <repository>   
  2.     <id>thinkgem-repos</id>   
  3.     <name>ThinkGem Repository</name>  
  4.     <url>http://git.oschina.net/thinkgem/repos/raw/master</url>  
  5. </repository> 

9、java.net 中央仓库(需要x墙哟)


  1. <repository>  
  2.     <id>java-repos</id>  
  3.     <name>Java Repository</name>  
  4.     <url>http://download.java.net/maven/2/</url>  
  5. </repository>

10、github.com 中央仓库(需要x墙哟)


  1. <repository>   
  2.     <id>thinkgem-repos2</id>   
  3.     <name>ThinkGem Repository 2</name>  
  4.     <url>https://raw.github.com/thinkgem/repository/master</url>  
  5. </repository>  

Maven 中央仓库配置示例

这里使用 Dubbo官方的中央仓库为示例,在 settings.xml 的 profiles 节点中添加如下内容:


  1. <profile>
  2. <id>jdk‐1.8</id>
  3. <activation>
  4. <activeByDefault>true</activeByDefault>
  5. <jdk>1.8</jdk>
  6. </activation>
  7. <properties>
  8. <maven.compiler.source>1.8</maven.compiler.source>
  9. <maven.compiler.target>1.8</maven.compiler.target>
  10. <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
  11. </properties>
  12. <!-- dubbo 官方的解决方案 -->
  13. <repositories>
  14. <repository>
  15. <id>sonatype-nexus-snapshots</id>
  16. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  17. <releases>
  18. <enabled>false</enabled>
  19. </releases>
  20. <snapshots>
  21. <enabled>true</enabled>
  22. </snapshots>
  23. </repository>
  24. </repositories>
  25. </profile>

如下图:

注意:这儿的jdk-1.8表示,在开发环境中使用jdk-1.8时,则激活该环境;


好了,关于 Maven远程仓库地址大全 就写到这儿了,如果还有什么疑问或遇到什么问题欢迎扫码提问,也可以给我留言哦,我会一一详细的解答的。 
歇后语:“ 共同学习,共同进步 ”,也希望大家多多关注CSND的IT社区。

Maven中央仓库地址大全,Maven中央仓库配置示例的更多相关文章

  1. Maven中央仓库地址大全

    1.默认的Maven中央仓库  在Maven安装目录下,找到:/lib/maven-model-builder-${version}.jar 打开该文件,能找到超级POM:\org\apache\ma ...

  2. 国内maven仓库地址资源汇总

    国内maven仓库地址:阿里云maven仓库,网易163maven仓库,以及其他maven仓库地址. 国内下载maven一般速度都很慢,下载需要很久时间.这里汇总了一些国内的镜像资源 附带pom文件中 ...

  3. maven 仓库地址:

    maven 仓库地址: 共有的仓库 http://repo1.maven.org/maven2/http://repository.jboss.com/maven2/ http://repositor ...

  4. 收集的maven 仓库地址(maven repository)

    maven 仓库地址: 共有的仓库http://repo1.maven.org/maven2/http://repository.jboss.com/maven2/http://repository. ...

  5. maven更改仓库地址

    安装maven后,maven的默认的仓库地址在  C:\Users\Administrator\.m2\repository 修改maven的仓库地址的步骤是,1.在某个盘符下建立一个文件夹,当做现在 ...

  6. 常用的maven仓库地址

    maven 仓库地址: 共有的仓库http://repo1.maven.org/maven2/http://repository.jboss.com/maven2/http://repository. ...

  7. Maven 教程(3)— Maven仓库介绍与本地仓库配置

    原文地址:https://blog.csdn.net/liupeifeng3514/article/details/79537837 1.Maven本地仓库/远程仓库的基本介绍 本地仓库是指存在于我们 ...

  8. window下玩转maven私服全流程,融合创建仓库、上传项目资源、下载私服资源

    ​ 在互联网项目开发浪潮中,maven成为了项目管理依赖的重要工具,更多时候maven只作为拉取外部依赖的手段.但出于安全的考虑的,部门企业难免封装一些私有的工具类,或开源框架的二次开发封装,mave ...

  9. 批量修改git仓库地址脚本

    前言   公司的代码都存放在自己搭建的gitlab上面.之前由于老板升级gitlab.导致下面有个叫做"api"的groups无法访问.通过无所不能的谷歌才知道.在gitlab在某 ...

随机推荐

  1. vue-router 基本操作

    安装 vue-router 在命令行中进入 vue 的项目目录里,运行命令 npm install vue-router --save 来进行安装   npm install vue-router - ...

  2. typedef void (*funcptr)(void) typedef void (*PFV)(); typedef int32_t (*PFI)();

    看到以下代码,不明白查了一下: /** Pointer to Function returning Void (any number of parameters) */ typedef void (* ...

  3. WPF 字体描边的实现方式

    原文:WPF 字体描边的实现方式   <local:TextPath x:Name="PathEdge" Fill="Red" Stroke=" ...

  4. login-Linux必学的60个命令

    1.作用 login的作用是登录系统,它的使用权限是所有用户. 2.格式 login [name][-p ][-h 主机名称] 3.主要参数 -p:通知login保持现在的环境参数. -h:用来向远程 ...

  5. 阿里云香港ECS搭建Shadowscoks

    注(转https://yijingping.github.io/2016/11/29/fanqiang.html) 1 为什么FQ 作为一个技术人员, 最常用的就是Google.StackOverfl ...

  6. 洛谷P2371 [国家集训队]墨墨的等式

    P2371 [国家集训队]墨墨的等式 题目描述 墨墨突然对等式很感兴趣,他正在研究a1x1+a2y2+-+anxn=Ba_1x_1+a_2y_2+-+a_nx_n=Ba1​x1​+a2​y2​+-+a ...

  7. CF891D Sloth

    题意:给你一棵树,你选择删掉一条边,再加上一条边(也要保证为树),问最后树上的节点能够两两完美匹配的加删边方案数? n<=5e5. 标程: #include<cstdio> #inc ...

  8. 阿里云 Aliplayer高级功能介绍(四):直播时移

    基本介绍 时移直播基于常规的HLS视频直播,直播推流被切分成TS分片,通过HLS协议向播放用户分发,用户请求的m3u8播放文件中包含不断刷新的TS分片地址:对于常规的HLS直播而言,TS分片地址及相应 ...

  9. Django关于migrate无效的问题

    目录 django关于manage.py migrate无效的问题解决 django关于manage.py migrate无效的问题解决 问题描述: 对于django已有的model,修改之后,想重新 ...

  10. 数据库DSN是什么

    数据库建立好之后,要设定系统的 DSN(数据来源名称),才能让网页可以知道数据库所在的位置以及数据库相关的属性.使用DSN的好处还有,如果移动数据库档案的位置,或是换成别种类型的数据库,只要重新设定 ...