Maven中央仓库地址大全,Maven中央仓库配置示例
《 Maven 中央仓库地址大全 》
在上一篇文章中完成了 《 Maven镜像地址大全 》,后来又花了时间又去收集并整理了关于 maven 远程仓库地址,并整理于此,关于 Maven 远程仓库地址的配置方式有两种,
第一种:直接在项目的 pom.xml 文件中进行修改(不推荐,尤其是在多人协助的开发过程中非常的费事费力);
第二种:将 Maven 的远程仓库统一的配置到 Maven 的 Settings.xml 的配置文件中;
Maven 中央仓库地址大全
1、阿里中央仓库(首推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>
9、java.net 中央仓库(需要x墙哟)
-
<repository>
-
<id>java-repos</id>
-
<name>Java Repository</name>
-
<url>http://download.java.net/maven/2/</url>
-
</repository>
10、github.com 中央仓库(需要x墙哟)
-
<repository>
-
<id>thinkgem-repos2</id>
-
<name>ThinkGem Repository 2</name>
-
<url>https://raw.github.com/thinkgem/repository/master</url>
-
</repository>
Maven 中央仓库配置示例
这里使用 Dubbo官方的中央仓库为示例,在 settings.xml 的 profiles 节点中添加如下内容:
-
<profile>
-
<id>jdk‐1.8</id>
-
<activation>
-
<activeByDefault>true</activeByDefault>
-
<jdk>1.8</jdk>
-
</activation>
-
<properties>
-
<maven.compiler.source>1.8</maven.compiler.source>
-
<maven.compiler.target>1.8</maven.compiler.target>
-
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
-
</properties>
-
<!-- dubbo 官方的解决方案 -->
-
<repositories>
-
<repository>
-
<id>sonatype-nexus-snapshots</id>
-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
-
<releases>
-
<enabled>false</enabled>
-
</releases>
-
<snapshots>
-
<enabled>true</enabled>
-
</snapshots>
-
</repository>
-
</repositories>
-
</profile>
如下图:
注意:这儿的jdk-1.8表示,在开发环境中使用jdk-1.8时,则激活该环境;
好了,关于 Maven远程仓库地址大全 就写到这儿了,如果还有什么疑问或遇到什么问题欢迎扫码提问,也可以给我留言哦,我会一一详细的解答的。
歇后语:“ 共同学习,共同进步 ”,也希望大家多多关注CSND的IT社区。
Maven中央仓库地址大全,Maven中央仓库配置示例的更多相关文章
- Maven中央仓库地址大全
1.默认的Maven中央仓库 在Maven安装目录下,找到:/lib/maven-model-builder-${version}.jar 打开该文件,能找到超级POM:\org\apache\ma ...
- 国内maven仓库地址资源汇总
国内maven仓库地址:阿里云maven仓库,网易163maven仓库,以及其他maven仓库地址. 国内下载maven一般速度都很慢,下载需要很久时间.这里汇总了一些国内的镜像资源 附带pom文件中 ...
- maven 仓库地址:
maven 仓库地址: 共有的仓库 http://repo1.maven.org/maven2/http://repository.jboss.com/maven2/ http://repositor ...
- 收集的maven 仓库地址(maven repository)
maven 仓库地址: 共有的仓库http://repo1.maven.org/maven2/http://repository.jboss.com/maven2/http://repository. ...
- maven更改仓库地址
安装maven后,maven的默认的仓库地址在 C:\Users\Administrator\.m2\repository 修改maven的仓库地址的步骤是,1.在某个盘符下建立一个文件夹,当做现在 ...
- 常用的maven仓库地址
maven 仓库地址: 共有的仓库http://repo1.maven.org/maven2/http://repository.jboss.com/maven2/http://repository. ...
- Maven 教程(3)— Maven仓库介绍与本地仓库配置
原文地址:https://blog.csdn.net/liupeifeng3514/article/details/79537837 1.Maven本地仓库/远程仓库的基本介绍 本地仓库是指存在于我们 ...
- window下玩转maven私服全流程,融合创建仓库、上传项目资源、下载私服资源
在互联网项目开发浪潮中,maven成为了项目管理依赖的重要工具,更多时候maven只作为拉取外部依赖的手段.但出于安全的考虑的,部门企业难免封装一些私有的工具类,或开源框架的二次开发封装,mave ...
- 批量修改git仓库地址脚本
前言 公司的代码都存放在自己搭建的gitlab上面.之前由于老板升级gitlab.导致下面有个叫做"api"的groups无法访问.通过无所不能的谷歌才知道.在gitlab在某 ...
随机推荐
- ASP.NET的底层体系2
文章引导 1.ASP.NET的底层体系1 2.ASP.NET的底层体系2 引言 接着上一篇ASP.NET的底层体系1我们继续往下走 一.System.Web.HttpRuntime.ProcessRe ...
- day 57 Django基础五之django模型层之关联管理器
Django基础五之django模型层之关联管理器 class RelatedManager "关联管理器"是在一对多或者多对多的关联上下文中使用的管理器.它存在于下面两种情况 ...
- 18.scrapy_maitian_analysis
1_info.py # encoding: utf-8 import pandas as pd # 租房 基本信息 # 读取文件 df=dataframe df = pd.read_json(&quo ...
- Django之跨表查询——正反向查询(ForeignKey)
1.正向查询和反向查询: 外键的查询操作: 正向查询: # 正向查询 # 基于对象,跨表查询 book_obj = models.Book.objects.all().first() ret = bo ...
- StringUtils工具
ppublic class StringUtils { private StringUtils() { } /** * 文本左边补零 * * @param maxLength 文本长度 * @para ...
- (转)linux centos 编译luabind-0.9.1 动态库 静态库
编译时:virtual memory exhausted: Cannot allocate memory 一.问题 当安装虚拟机时系统时没有设置swap大小或设置内存太小,编译程序会出现virtual ...
- h5 上下左右前后居中
.outer { width: 200px; height: 200px; background: red; position: relative; } .inner { position: abso ...
- Ubuntu下使用SSH 命令用于登录远程桌面
https://blog.csdn.net/yucicheung/article/details/79427578 问题描述 做DL的经常需要在一台电脑(本地主机)上写代码,另一台电脑(服务器,计算力 ...
- SPOJ 1043 GSS1 - Can you answer these queries I
题目描述 给出了序列A[1],A[2],-,A[N]. (a[i]≤15007,1≤N≤50000).查询定义如下: 查询(x,y)=max{a[i]+a[i+1]+-+a[j]:x≤i≤j≤y}. ...
- 19-11-06-&
你&我处于这里……在一起? $$\text{%%%Wearry}$$ ZJ: 一遇到Wearry的思维题就得×得够呛. 考试心态炸裂,码上三个暴力然后就不知道该干啥了. 现在就想敲自己. 不要 ...