Maven 仓库地址(maven 仓库地址在哪里配置)

Maven 仓库地址(maven 仓库地址在哪里配置)

编程文章jaq1232025-08-18 7:06:004A+A-

Maven 中央仓库地址大全

在 Java 开发中,Maven 是一个强大的项目管理工具,而中央仓库则是 Maven 获取依赖库的重要途径。本文将为大家汇总一些常用的 Maven 中央仓库地址,方便开发者在项目中快速配置使用。

一、Maven 主要仓库地址

  1. Sonatype Nexus
  2. Sonatype Nexus
  3. Maven Repository
  4. Mvnrepository(推荐使用)
  5. Apache Maven 官方仓库
  6. Maven Central

二、Maven 中央仓库详细列表

1. 阿里云中央仓库(首选推荐)

<repository>  
    <id>alimaven</id>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>

2. Camunda 中央仓库(第二推荐)

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

3. Spring 官方仓库

<repository>  
    <id>springsource-repos</id>  
    <name>SpringSource Repository</name>  
    <url>http://repo.spring.io/release/</url>  
</repository>

4. Apache Maven 官方中央仓库

<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 中央仓库(第三推荐)

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

7. Oschina 中央仓库(需翻墙)

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

8. Oschina ThinkGem 中央仓库(需翻墙)

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

9. Java.net 中央仓库(需翻墙)

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

10. GitHub 中央仓库(需翻墙)

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

结论

以上汇总的 Maven 中央仓库地址,可以帮助开发者在使用 Maven 构建 Java 项目时,快速获取所需的依赖库。根据网络环境的不同,可以选择适合的仓库以提高下载速度。在项目中合理配置这些仓库地址,将为您的开发工作带来极大的便利。希望对大家有所帮助!

点击这里复制本文地址 以上内容由jaq123整理呈现,请务必在转载分享时注明本文地址!如对内容有疑问,请联系我们,谢谢!

苍茫编程网 © All Rights Reserved.  蜀ICP备2024111239号-21