`
superseven
  • 浏览: 107993 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Eclipse 3.7(indigo)下maven插件安装

阅读更多
  Eclipse 3.7 发布好一段时间,m2e(clipse) 插件稳定版一直没有发布,之前一直在用3.6版本的Eclipse没有发现版本不兼容的问题,今天下载了3.7版本后发现居然不能在Install New SoftWare的时候安装不了,郁闷了好一阵,折腾了半天,终于搞出来,与君分享下。

一、插件地址
  1、先安装gef插件
   地址:http://download.eclipse.org/tools/gef/updates/interim/
   选择3.7版本下载,maven插件安装的时候会依赖依赖这个插件,没有的会有错误,信息如下:
Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.maven.ide.eclipse.feature.feature.group 0.10.0.20100209-0800)
Missing requirement: Maven Integration for Eclipse (Editors) 0.10.0.20100209-0800 (org.maven.ide.eclipse.editor 0.10.0.20100209-0800) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.maven.ide.eclipse.feature.feature.group 0.10.0.20100209-0800)
To: org.maven.ide.eclipse.editor [0.10.0.20100209-0800]

   2、安装svn插件
   地址:http://subclipse.tigris.org/update_1.6.x

   3、maven插件
    m2eclipse-core Update Site: http://m2eclipse.sonatype.org/sites/m2e
    m2eclipse-extras Update Site: http://m2eclipse.sonatype.org/sites/m2e-extras
    注意 :必须两个插件都安装,不安装extras 插件时,点击“run as server”来运行项目时会报错:“the selected did not contain any resources that can run on server maven project”
  
三、安装时出现问题:
    直接在线安装maven2 会出现依赖插件找不到的问题,无法安装。必须先安装gef 插件后才能安装m2eclipse-core 插件,然而安装m2eclipse-extras 插件又依赖subclipse 插件。所以,三个插件的正确的安装顺序是:gef插件 》subclipse插件 》m2eclipse插件。
  m2eclipse-core插件 ——依赖——>gef插件
  m2eclipse-extras插件 ——依赖——>subclipse插件

安装完成后,启动eclipse,你将还会看到如下提示:

安装m2eclipse插件后,重启Eclipse老是提示:

Eclipse is running in a JRE, but a JDK is required

Some Maven plugins may not work when importing projects or updating source folders.


需要修改eclipse.ini文件,新增一项配置
-vm配置项必须在 –vmargs配置项前,是因为执行到-vmargs配置项已经选择了一个默认的JVM了。

所以在–vmargs前面加上这一句:

-vm
D:/Java/jdk1.6.0_29/bin/javaw.exe


  启动后测试一切正常。
分享到:
评论
6 楼 lix909 2014-07-18  
已经找不到这个地址了 http://m2eclipse.sonatype.org/sites/m2e
5 楼 jones247937605 2012-12-07  
crabboy 写道
亮亮婷婷 写道
安装m2e-extras,提示:
Cannot complete the install because one or more required items could not be found.
  Software being installed: Web Application Runner 0.1.0.201105060943 (com.sonatype.m2e.webby.feature.feature.group 0.1.0.201105060943)
  Missing requirement: In-situ Web Application Launcher for M2Eclipse 0.1.0.201105060943 (com.sonatype.m2e.webby 0.1.0.201105060943) requires 'bundle org.eclipse.m2e.core [0.13.0,0.14.0)' but it could not be found
  Cannot satisfy dependency:
是什么原因呢?望解答,不胜感激!

同样的问题?



我是第一个和最后一个都不装:Web Application Launcher  就通过了
4 楼 crabboy 2012-05-08  
亮亮婷婷 写道
安装m2e-extras,提示:
Cannot complete the install because one or more required items could not be found.
  Software being installed: Web Application Runner 0.1.0.201105060943 (com.sonatype.m2e.webby.feature.feature.group 0.1.0.201105060943)
  Missing requirement: In-situ Web Application Launcher for M2Eclipse 0.1.0.201105060943 (com.sonatype.m2e.webby 0.1.0.201105060943) requires 'bundle org.eclipse.m2e.core [0.13.0,0.14.0)' but it could not be found
  Cannot satisfy dependency:
是什么原因呢?望解答,不胜感激!

同样的问题?
3 楼 亮亮婷婷 2012-03-27  
安装m2e-extras,提示:
Cannot complete the install because one or more required items could not be found.
  Software being installed: Web Application Runner 0.1.0.201105060943 (com.sonatype.m2e.webby.feature.feature.group 0.1.0.201105060943)
  Missing requirement: In-situ Web Application Launcher for M2Eclipse 0.1.0.201105060943 (com.sonatype.m2e.webby 0.1.0.201105060943) requires 'bundle org.eclipse.m2e.core [0.13.0,0.14.0)' but it could not be found
  Cannot satisfy dependency:
是什么原因呢?望解答,不胜感激!
2 楼 亮亮婷婷 2012-03-09  
有了哈,不过时间太长啦!
1 楼 亮亮婷婷 2012-03-09  
我是用eclipse在线安装的,但是pending下面没有显示可以安装的软件啊!??

相关推荐

Global site tag (gtag.js) - Google Analytics