Maven Project uses open source China mirror
Clearly as the moon
Downloading jars from the MAVEN Central Library is very slow and sometimes can not be downloaded.
You can use the Chinese maven image. Currently the main source of China's mirror image.
Note: Creating a MAVEN project after the Eclipse Mars version modifies the Mirror QuickStart easy to complain
It is recommended that you use the Eclipse Luna version for pro-test availability
1 Open configuration file
2 <mirrors> </mirrors> Middle Add Open source China configuration:
<!--open source China-->
<mirror>
<id>CN</id>
<name>oschina central</name>
<url>http://maven.oschina.net/content/groups/public/</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>osc_thirdparty</id>
<mirrorOf>thirdparty</mirrorOf>
<url>http://maven.oschina.net/content/repositories/thirdparty/</url>
</mirror>
<!--foreign-->
<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>
This will then be downloaded from open source China or other warehouses to download jar packs
The sequential IDs of multiple configuration root IDs are optional, like converting CN to a
http://maven.oschina.net/Web site currently cannot search and upload jar files online
However, you can use remote warehouses
--------------------------------------------------------------------------------------------------------------- --
From the official news Http://www.oschina.net/news/64847/maven-online
, the reason for the rare maven public image in China is that the MAVEN library is a download station, a large number of jar packages, high bandwidth requirements and high cost. And there is no profit model.