M2eclipse: Maven Eclipse plug-in cannot search for remote Libraries

Source: Internet
Author: User

After installing the maven plug-in using eclipse, create a Maven project and find that the remote library cannot be searched automatically when the dependency "add dependency" is added.

 

If you cannot search for a remote database, use this plug-in...

 

Check all Maven configuration files.

 

Finally, the plug-in itself encountered a problem. The reason is that the index of the remote database is not successfully created.

 

It is very likely that the default Index "http://repo1.maven.org/maven2/#cannot be updated after a" Update indexes "failure occurs after the plug-in is installed. So every time an error is reported: Unable to updateIndex
For Central
HTTP
://Repo1
.Maven
.Org
/Maven2
/.

 

That is to say, an update failure causes all subsequent update indexes to fail.

 

In this case, perform the following operations:

 

Http://readthefuckingmanual.net/error/2394/

 

Do in Eclipse: window-> show view-> Other-> Maven indexes. One
Of the indexes is:
Http://repo1.maven.org/maven2.
Right-click on this
One, and try rebuild index.
If that does not work, create a new index
The same address, and do a rebuild of that. With me that worked, and I cocould
Remove the original one. After this a restart of eclipse will not show the error
Anymore, And the Add dependency search function operates as it shocould. Problem
Solved.

 

Also, refer to http://forum.springside.org.cn/redirect.php? Tid = 2876 & goto = lastpost, which can be used to accelerate index creation.

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.