Eclipse integration maven Download jar Package slow problem resolution

Source: Internet
Author: User
Tags aliyun

Reference: http://blog.csdn.net/u010154380/article/details/70339538

During the development process, when adding pom in Pom.xml, the default is to download from the central repository, but the download speed is very slow, more than a certain amount of time may feel that eclipse is stuck.
The workaround is to add the Ali image to Maven.
The specific steps are:
1. Locate the settings.xml file under the Conf folder in the MAVEN installation directory
2. Add Ali's image to mirrors

<Mirrors><!--Mirror | Specifies a repository mirror site to use instead of a given repository. The Repository that | This mirror serves have an ID, that matches, the mirrorof element of this mirror. IDs is used |     For inheritance and direct lookup purposes, and must is unique across the set of mirrors.    | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>huma N Readable Name for this mirror.</name> <url>http://my.repository.com/repo/path</url> </mirro R>--<Mirror><Id>alimaven</Id><Name>aliyun maven</Name><url>http://maven.aliyun.com/nexus/content/groups/public/</Url><Mirrorof>central</Mirrorof></Mirror><Mirror><Id>uk</Id><Mirrorof>central</Mirrorof><Name>human readable Name for this Mirror.</Name><url>http://uk.maven.org/maven2/</Url></Mirror><Mirror><Id>cn</Id><Name>oschina Central</Name><url>http://maven.oschina.net/content/groups/public/</Url><Mirrorof>central</Mirrorof></Mirror><Mirror><Id>nexus</Id><Name>internal Nexus Repository</Name><!--<url>http://192.168.1.100:8081/nexus/content/groups/public/</url>--><Url>http://repo.maven.apache.org/maven2</Url><Mirrorof>central</mirrorof> </mirror> </mirrors>    



Eclipse integration maven Download jar Package slow problem resolution

Related Article

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.