Maven Project uses open source China mirror

Source: Internet
Author: User
Tags readable jboss maven central

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.