码迷,mamicode.com
首页 > 系统相关 > 详细

安装eclipse maven插件m2eclipse No repository found containing

时间:2015-07-14 23:56:17      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:eclipse   maven   eclipse插件   m2e   

m2eclipse插件是Eclipse的一款Maven插件。

安装m2eclipse插件的过程如下:

启动Eclipse,在菜单栏中选择Help,然后选择Install New Software…,可以看到一个Install对话框,点击Work with:字段边上的Add按钮,会得到一个新的Add Repository对话框,在Name字段中输入m2eLocation字段中输入http://download.eclipse.org/technology/m2e/releases,然后点击OK

显示了m2eclipse的核心模块Maven Integration for Eclipse (Required),选择“Maven Integration for Eclipse”后点击NextEclipse会自动计算模块间的依赖关系,然后给出一个将被安装的模块列表;确认无误后,继续点击Next;看到许可证信息,m2eclipse使用的开源许可证是Eclipse Public License v1.0,选择I accept the terms of the license agreements,然后点击FinishEclipse开始下载安装选择的模块。



错误解决办法:

可能会突然弹出一个类似“No repository found containing”的错误提示信息:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.android.ide.eclipse.traceview,20.0.3.v201208082019-427395
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.traceview,20.0.3.v201208082019-427395


重新回到第一步,点击“Available Software Sites”(Work with下面),就会弹出一个配置站点信息列表,选中“m2e”,再点击“Export”导出,保存为“bookmarks.xml”,回到配置站点信息列表,选中“m2e”,点击“Remove”移除,然后打开“bookmarks.xml”文件,在eclipse后面添加一个“/”,保存。又回到配置站点信息列表,点击“Import”把“bookmarks.xml”文件导入,再回到步骤2即可。


修改前

<?xml version="1.0" encoding="UTF-8"?>
<bookmarks>
   <site url=http://download.eclipse.org/technology/m2e/releases selected="true" name="m2e"/>
</bookmarks>


修改后

<?xml version="1.0" encoding="UTF-8"?>
<bookmarks>
   <site url="http://download.eclipse.org/technology/m2e/releases/" selected="true" name="m2e"/>
</bookmarks>

版权声明:本文为博主原创文章,未经博主允许不得转载。

安装eclipse maven插件m2eclipse No repository found containing

标签:eclipse   maven   eclipse插件   m2e   

原文地址:http://blog.csdn.net/goon_star/article/details/46885229

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!