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