Maven命令 eclipse:m2eclipse 运行出错

有个二逼领导的程序员 发布于 2012/03/27 11:25
阅读 2K+
收藏 0

cmd cd到工作台下的maven项目test目录 执行mvn eclipse:m2eclipse,出现下面的错误,是配置不对还是什么原因?

D:\Workspace\maven_work\test>mvn eclipse:m2eclipse
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.421s
[INFO] Finished at: Tue Mar 27 11:20:41 CST 2012
[INFO] Final Memory: 3M/7M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'm2eclipse' in plugin org.apache.maven.plugins:maven
-eclipse-plugin:2.9 among available goals help, make-artifacts, configure-worksp
ace, install-plugins, remove-cache, eclipse, rad-clean, to-maven, myeclipse-clea
n, add-maven-repo, rad, clean, myeclipse -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundEx
ception

加载中
0
王振威
王振威
貌似是 mvn eclipse:eclipse 生成eclipse的工程
有个二逼领导的程序员
有个二逼领导的程序员
嗯,mvn eclipse:m2eclipse是转换为适合Eclipse的Maven项目
0
王振威
王振威
你可以转换为eclipse项目后在里面再转换为Maven项目
返回顶部
顶部