Maven 中央仓库地址大全

Maven 中央仓库地址大全1 http www sonatype org nexus 2 http mvnrepositor com 本人推荐仓库 3 http repo1 maven org maven2 关于 Maven 远程仓库地址的配置方式有两种 第一种 直接在项目的 pom xml 文件中进行修改 不推荐 尤其是在多人协助的开发过程中非常的费事费力 第二种 将 Maven 的远程仓库统一的配置到 Maven 的 Settings xml 的配置文件中 Maven 中央仓库地址大全 1

1. http://www.sonatype.org/nexus/ 2. http://mvnrepository.com/ (本人推荐仓库) 3. http://repo1.maven.org/maven2 

关于 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 
    
    
    
      true 
     
    
      1.8 
     
    
    
    
      1.8 
     
    
      1.8 
     
    
      1.8 
     
    
    
    
     
     
       sonatype-nexus-snapshots 
      
     
       https://oss.sonatype.org/content/repositories/snapshots 
      
      
      
        false 
       
      
      
      
        true 
       
      
     
    
   
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/210883.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月18日 下午11:41
下一篇 2026年3月18日 下午11:41


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号