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.