歡迎您光臨本站 註冊首頁

Maven中央倉庫地址配置大全

←手機掃碼閱讀     wooen @ 2020-07-01 , reply:0

在上一篇文章中完成了 《Maven鏡像地址大全 》,後來又花了時間又去收集並整理了關於 maven 遠程倉庫地址,並整理於此,關於 Maven 遠程倉庫地址的配置方式有兩種,

第一種:直接在項目的 pom.xml 文件中進行修改(不推薦,尤其是在多人協助的開發過程中非常的費事費力);

第二種:將 Maven 的遠程倉庫統一的配置到 Maven 的 Settings.xml 的配置文件中;

Maven 中央倉庫地址大全

1、阿里中央倉庫(首推1)

  alimavenaliyun mavenhttp://maven.aliyun.com/nexus/content/groups/public/

 

2、camunda.com 中央倉庫(首推2)

  activiti-repos2Activiti Repository 2https://app.camunda.com/nexus/content/groups/public

 

3、spring.io 中央倉庫

  springsource-reposSpringSource Repositoryhttp://repo.spring.io/release/

 

4、maven.apache.org 中央倉庫

  central-reposCentral Repositoryhttp://repo.maven.apache.org/maven2

 

5、maven.org 中央倉庫

  central-repos1Central Repository 2http://repo1.maven.org/maven2/

 

6、alfresco.com 中央倉庫(首推3)

  activiti-reposActiviti Repositoryhttps://maven.alfresco.com/nexus/content/groups/public

 

7、oschina 中央倉庫(需要x牆喲)

  oschina-reposOschina Releaseshttp://maven.oschina.net/content/groups/public

 

8、oschina thinkgem 中央倉庫(需要x牆喲)

  thinkgem-reposThinkGem Repositoryhttp://git.oschina.net/thinkgem/repos/raw/master

 

9、java.net 中央倉庫(需要x牆喲)

  java-reposJava Repositoryhttp://download.java.net/maven/2/

 

10、github.com 中央倉庫(需要x牆喲)

  thinkgem-repos2ThinkGem Repository 2https://raw.github.com/thinkgem/repository/master

 

Maven 中央倉庫配置示例

這裡使用 Dubbo官方的中央倉庫為示例,在 settings.xml 的 profiles 節點中添加如下內容:

  jdk�1.8true1.81.81.81.8sonatype-nexus-snapshotshttps://oss.sonatype.org/content/repositories/snapshotsfalsetrue

 

如下圖:

 

注意:這兒的jdk-1.8表示,在開發環境中使用jdk-1.8時,則激活該環境;


[wooen ] Maven中央倉庫地址配置大全已經有250次圍觀

http://coctec.com/docs/java/show-post-240565.html