M2Eclipse:Maven Eclipse插件无法搜索远程库的解决方法
来源:互联网 发布:宿迁宽带测速软件 编辑:程序博客网 时间:2024/04/27 23:28
http://blog.csdn.net/shootyou/article/details/5262560
使用Eclipse安装了maven插件之后,创建Maven工程,发现添加依赖“Add Dependency”的时候无法自动搜索远程库。
如果不能搜索远程库那用这个插件有啥用撒。。。
查遍了所有的maven配置文件都没发现问题。
最后发现是插件本身的问题。原因是远程库的索引没有成功的建立。
很有可能安装插件之后的某一次“Update Indexes”失败之后,导致默认的index“http://repo1.maven.org/maven2/”无法继续更新。所以每次都会报错: Unable to update index for central http ://repo1 .maven .org /maven2 / 。
也就说一次更新失败导致了以后的Update index都失败了。
这个时候执行以下操作:
http://readthefuckingmanual.net/error/2394/
Do in eclipse: window->show view->other->maven->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 with the same address, and do a rebuild of that. With me that worked, and I could 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 should. Problem solved.
另外,参考 http://forum.springside.org.cn/redirect.php?tid=2876&goto=lastpost ,可以获得加快索引建立的方法。
http://kyfxbl.iteye.com/blog/1684966
http://www.oschina.net/news/44282/oschina-maven-repository
http://maven.oschina.net/help.html
- M2Eclipse:Maven Eclipse插件无法搜索远程库的解决方法
- M2Eclipse:Maven Eclipse插件无法搜索远程库的解决方法
- M2Eclipse:Maven Eclipse插件无法搜索远程库的解决方法
- Maven的Eclipse插件m2eclipse的问题
- Eclipse 安装 Maven 的 m2eclipse 插件
- Maven和Eclipse插件m2eclipse的安装
- Eclipse 安装 Maven 的 m2eclipse 插件
- Eclipse 安装 Maven 的 m2eclipse 插件
- maven的eclipse插件在增加依赖(Add Dependency)时无法搜索远程仓库
- maven的eclipse插件在增加依赖(Add Dependency)时无法搜索远程仓库
- 安装eclipse maven插件m2eclipse
- 安装eclipse maven插件m2eclipse
- 安装eclipse maven插件m2eclipse
- Eclipse集成Maven插件 m2eclipse
- 安装eclipse maven插件m2eclipse
- maven的eclipse插件m2eclipse的安装和使用
- Maven以及其Eclipse插件m2eclipse的安装
- [转]Maven以及其Eclipse插件m2eclipse的安装
- 除去Scala的糖衣(13) -- Default Parameter Value
- hdu1171 Big Event in HDU 01-背包
- 比赛现场气氛营造问题II
- java中vector的详细用法
- 综合作业:图书管理系统
- M2Eclipse:Maven Eclipse插件无法搜索远程库的解决方法
- /boot/grub/menu.lst 配置档
- tomcat 日志维护
- mysql添加字段
- 关于对Fragment事务操作对比物理键导航操作的困惑的解惑
- Sexy ShoesRed bottoms
- IntelliJ 13,pom报错cannot reconnect
- swift学习笔记(七)自动引用计数
- (转载)A星(A*)寻路算法介绍