logo资料库

maven报错积累文件.doc

第1页 / 共3页
第2页 / 共3页
第3页 / 共3页
资料共3页,全文预览结束
mvn:complie报错
mvn:complie 报错 原因:命令编写错误 mvn compile E:\HelloFriend\src\test\java\cn\ynet\maven\HelloFriendTest.java:[9,2] -source 1. 3 中不支持注释 (请使用 -source 5 或更高版本以启用注释) @Test 下面说问题,你的 maven 编译插件要升级到 1.5,在 pom 文件里修改成下面这样。 maven-compiler-plugin 2.0.2 1.5 1.5
[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
ok,一切完好。。。
分享到:
收藏