Maven中央仓库地址配置大全

网友投稿 745 2022-12-03


Maven中央仓库地址配置大全

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

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

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

Maven 中央仓库地址大全

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

alimaven

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

http://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、vsvCYfgithub.com 中央仓库(需要x墙哟)

thinkgem-repos2

ThinkGem Repository 2

https://raw.github.com/thinkgem/repository/master

Maven 中央仓库配置示例

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

jdk‐1.8

true

1.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时,则激活该环境;


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:IDEA强制清除Maven缓存的方法示例
下一篇:Maven镜像地址配置示例大全
相关文章

 发表评论

暂时没有评论,来抢沙发吧~