Maven首页 Maven镜像站大全-含国内国外

由于Maven的中央仓库在国外,国内访问速度较慢,严重影响了开发效率。这里推荐若干国内、国外的Maven中央仓库镜像。造福广大开发码农。

首先,需要找到Maven的setting.xml配置,然后找到镜像配置目录:mirrors。现在可以添加Maven镜像了


一、阿里云Maven镜像(国内)

<mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors>

二、网页163的Maven镜像(国内)

<mirror>
    <id>nexus-163</id>
    <mirrorOf>*</mirrorOf>
    <name>Nexus 163</name>
    <url>http://mirrors.163.com/maven/repository/maven-public/</url>
</mirror>

三、oschina开源中国(国内)

<mirror>
    <id>CN</id>
    <name>OSChina Central</name>                                   
    <url>http://maven.oschina.net/content/groups/public/</url>
    <mirrorOf>central</mirrorOf>
</mirror>

四、Maven中国仓(国内)

<mirror>  
    <id>net-cn</id>  
    <mirrorOf>central</mirrorOf>  
    <name>Human Readable Name for this Mirror.</name>  
    <url>http://maven.net.cn/content/groups/public/</url>   
</mirror>

五、其他国内外镜像

<mirror>
	<id>central</id>
	<name>Maven Repository Switchboard</name>
	<url>http://repo1.maven.org/maven2/</url>
	<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
	<id>repo2</id>
	<mirrorOf>central</mirrorOf>
	<name>Human Readable Name for this Mirror.</name>
	<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
	<id>ibiblio</id>
	<mirrorOf>central</mirrorOf>
	<name>Human Readable Name for this Mirror.</name>
	<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
	<id>jboss-public-repository-group</id>
	<mirrorOf>central</mirrorOf>
	<name>JBoss Public Repository Group</name>
	<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
<mirror>
	<id>google-maven-central</id>
	<name>Google Maven Central</name>
	<url>https://maven-central.storage.googleapis.com
	</url>
	<mirrorOf>central</mirrorOf>
</mirror>


更多地址请参考:

Nexus osc : Index of /groups/main-repo
 Nexus osc thirdparty : Index of /groups/plugin-repo
 typesafe: repo.typesafe.com/types, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly--
 typesafe2: repo.typesafe.com/types
 sbt-plugin: repo.scala-sbt.org/scal
 sonatype: oss.sonatype.org/conten--
 uk_maven: uk.maven.org/maven2/--
 ibibli: mirrors.ibiblio.org/mav--
 repo2: repo2.maven.org/maven2/

comp-maven:mvnrepository.com/artif
 store_cn:maven.aliyun.com/nexus/
 store_mir:mirrors.ibiblio.org/mav
 store_1:repo.typesafe.com/types
 store_2:repo2.maven.org/maven2/

sbt-releases-repo: repo.typesafe.com/types, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
 sbt-plugins-repo: repo.scala-sbt.org/scal, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
 maven-central: repo1.maven.org/maven2/