maven安装出错处理
永久域名 paskaa.iteye
Maven2 J2EE入门教程| 配合m2eclipse,改造tomcatPluginV321根据 ...
2010-12-02
eclipse 3.6.1 安装maven插件失败的解决办法
博客分类:
∙ maven
EclipsemavenIDEPHPJVM
一、eclipse 3.6.1下载地址[eclipse-jee-helios-SR1-win32.zip]
/downloads/packages/eclipse-ide-java-ee-developers/heliossr1
/downloads/packages/eclipse-ide-java-ee-developers/heliossr1
二、插件地址
1、gef插件地址:
/tools/gef/updates/interim/
1、gef插件地址:
/tools/gef/updates/interim/
实际测试发现eclipse 3.6.1已经安装gef,仅仅缺少zest插件,最小安装zest的runtime即可,地址如下:
/downloads/download.php?file=/tools/gef/downloads/drops/3.6.1/R201009132020/GEF-zest-3.6.1.zip
在没有安装zest插件的话,直接安装m2eclipse插件会报出缺少依赖的错误,信息如下:
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.lipse.up 0.10.0.20100209-0800)
Missing requirement: Maven Integration for Eclipse (Editors) 0.10.0.20100209-0800 (org.lipse.editor 0.10.0.20100209-0800) requires '
Software being installed: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.lipse.up 0.10.0.20100209-0800)
Missing requirement: Maven Integration for Eclipse (Editors) 0.10.0.20100209-0800 (org.lipse.editor 0.10.0.20100209-0800) requires '
0.0.0' but it could not be found
Cannot satisfy dependency:
From: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.lipse.up 0.10.0.20100209-0800)
To: org.lipse.editor [0.10.0.20100209-0800]
Cannot satisfy dependency:
From: Maven Integration for Eclipse (Required) 0.10.0.20100209-0800 (org.lipse.up 0.10.0.20100209-0800)
To: org.lipse.editor [0.10.0.20100209-0800]
eclipse安装教程tomcat
2、subclipse插件地址:
/update_1.6.x
2、subclipse插件地址:
/update_1.6.x
实际测试subclipse不安装也是可以的.
3、maven2插件地址:
m2eclipse-core Update Site: /sites/m2e
m2eclipse-extras Update Site: /sites/m2e-extras
注意 :必须两个插件都安装,不安装extras插件时,点击“run as server”来运行项目时会报
3、maven2插件地址:
m2eclipse-core Update Site: /sites/m2e
m2eclipse-extras Update Site: /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插件
三、安装时出现问题:
直接在线安装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.
-
vm配置项必须在 –vmargs配置项前,是因为执行到-vmargs配置项已经选择了一个默认的JVM了。
所以在–vmargs前面加上这一句:
-vm
D:/Java/jdk1.6.0_10/
D:/Java/jdk1.6.0_10/
ok,一切完好。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论