执行原型时,该项目中的Maven错误没有POM: [英] Maven Error No POM in this Project when performing archetype:generate
问题描述
我正在尝试Akka Pi Java教程
I am trying my hands on the Akka Pi java tutorials
我正在按照教程中的说明创建一个Maven项目
I am trying to creaate a maven project as stated in the tutorial
但是每次我输入创建Maven项目的命令时,都会出现错误. 下面是命令和错误.
but any time I enter the command to create a maven project I get an error. Below are the command and the Error.
C:\Program Files\akka-2.0.2>mvn archetype:generate \
C:\Program Files\akka-2.0.2>mvn archetype:generate \
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.206s
[INFO] Finished at: Wed Sep 26 02:50:38 BST 2012
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\Program Files\akka-2.0.2). Please verify you invoked Mave
n from the correct directory. -> [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/MissingProject
Exception
看起来maven正在请求POM文件,但是在教程中并没有说明我必须在生成项目之前创建POM. 我实际上也是新手,所以请原谅我. 我正在使用Maven版本:3.0.4 和akka版本2.0.2 但本教程使用akka 2.0.1版,但我不认为这是问题所在 请提出任何建议.
looks like maven is requesting for the POM file but it is not stated in the tutrials that I have to create a POM before generating the project. I am actually new too maven so pardon me. I am using maven version :3.0.4 and akka version 2.0.2 but the tutorial uses akka version 2.0.1 but i donn't think that is the problem any suggestion please.
谢谢
推荐答案
删除\
,然后它应该开始查询更多信息.
remove the \
then it should start to query for more informations.
我这里没有窗户,但是在linux上,它显示与
I have no windows here, but on linux it shows the same behavior with
mvn archetype:generate /
HTH R
这篇关于执行原型时,该项目中的Maven错误没有POM:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!