我正在尝试 Akka Pi java 教程
我正在尝试按照教程中的说明创建一个 Maven 项目
但是任何时候我输入命令来创建一个 Maven 项目我都会得到一个错误。下面是命令和错误。
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文件,但在tutrials中没有说明我必须在生成项目之前创建一个POM。我实际上是新手,所以请原谅我。我使用的是 maven 版本:3.0.4 和 akka 版本 2.0.2,但本教程使用的是 akka 版本 2.0.1,但我认为这不是问题,请提供任何建议。
谢谢你