收藏 M2Eclipse:Maven Eclipse插件无法搜索远程库的解决方法
Posted by: bona in 程序 on 三月 7th, 2010
使用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,可以获得加快索引建立的方法。
分享到:
相关推荐
m2eclipse eclipse maven插件
m2eclipse maven插件 放在/dropins目录下就可以.
eclipse的maven插件m2eclipse 1.6.2 目前最新版
eclipse插件maven,也叫m2eclipse,版本信息及安装教程看博文:http://blog.csdn.net/lxn39830435731415926/article/details/52346909
旧版本eclipse,比如indigo版本要安装maven,旧的在线安装方式已经失效,因为依赖的zest和m2eclipse的location url都已经无法访问。所以从已经安装这两个包的eclipse中分离出离线的安装包,拷贝到对应的features和...
插件名称:m2eclipse、SVN、汉化插件 Eclipse版本:Eclipse3.7(eclipse-jee-indigo-SR2-win32.zip) 安装方式:link方式安装 操作系统:windows xp 安装步骤: 1、 将eclipse-jee-indigo-SR2-win32.zip解压到文件夹; ...
m2maven插件 Installing m2eclipse Core To install m2eclipse, use the following Eclipse update site to install the core of the m2eclipse plugin. This Core update site contains a single component: "Maven...
该文档详细说明了m2Eclipse安装、配置、使用方法,以及对Pom.xml文件图形化的解读。
m2eclipse插件,是maven装载在eclipse上的插件。一个很好的项目管理工具。找到了,在这里做个备份。
安装m2eclipse插件时会依赖gef插件和svn插件,压缩包内包含m2eclipse + gef + svn的全部插件安装包,可以直接离线安装,本人亲测,在Eclipse3.7下安装成功,可以新建Maven项目。 需要注意的是,在离线安装时,切记...
Maven以及其Eclipse插件m2eclipse的安装.doc
m2eclipse-subclipse插件 maven 解决没有check out as maven project ,svn结合maven插件
eclipse工具集成maven插件,m2Subclipse.zip.
myecplice/ecplice maven插件m2eclipse_for_eclipse_3.3离线安装,省时省力,程序猿必备工具
此文件包含了maven的安装文件和集成eclipse的插件; 使用方法如下: 1、将maven 文件拷贝至C:\maven下,配置环境变量M2_HOME=C:\maven 2、将M2_HOME加在path路径后,测试安装是否成功打开doc ;cmd;输入mvn -v 没报错...
m2eclipse download;eclipse plugin maven2; eclipse插件Maven
Installing m2eclipse Core To install m2eclipse, use the following Eclipse update site to install the core of the m2eclipse plugin. This Core update site contains a single component: "Maven Integration...
Rational Application Developer7.5 + Maven + M2Eclipse
maven2之m2eclipse使用手册.doc
maven eclipse 插件 m2eclipse 本地安装包 版本0.12.1.20110112-1712 在线安装地址http://m2eclipse.sonatype.org/sites/m2e