Maven命令 eclipse:m2eclipse 运行出错
cmd cd到工作台下的maven项目test目录 执行mvn eclipse:m2eclipse,出现下面的错误,是配置不对还是什么原因?
D:Workspacemaven_worktest>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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
可以看看这个demo,
M2eclipse 设置 Maven编译Android下i-jetty
你可以转换为eclipse项目后在里面再转换为Maven项目
嗯,mvn eclipse:m2eclipse是转换为适合Eclipse的Maven项目
貌似是 mvn eclipse:eclipse 生成eclipse的工程