[INFO] Invalid task 'complie': you must specify a valid lifecycle phase, or a go
al in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goa
l
Cannot complete the install because one or more required items could not be found.
Software being installed: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317
(org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
Missing requirement: async-http-client 1.6.5.20130531-2315 (com.ning.async-http-client
1.6.5.20130531-2315) requires 'package org.slf4j 1.6.2' but it could not be found
Cannot satisfy dependency:
From: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317
(org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
To: org.eclipse.m2e.maven.runtime [1.4.0.20130531-2315]
Cannot satisfy dependency:
From: Embedded Maven Runtime Bundle 1.4.0.20130531-2315
(org.eclipse.m2e.maven.runtime 1.4.0.20130531-2315)
To: bundle com.ning.async-http-client [1.6.5,1.6.6)
三、安装时出现问题:
直接在线安装 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/bin/javaw.exe