简体   繁体   English

使用mvn devserver的Google App Engine Java失败:缺少“guestbook / target / guestbook-1.0-SNAPSHOT”

[英]Google App Engine Java with mvn devserver failed: missing “guestbook/target/guestbook-1.0-SNAPSHOT”

I'm trying to go through the simple tutorial on Google App Engine with Java , but when I try to run the mvn appengine:devserver command, I get this weird missing directory error: 我正在尝试使用Java在Google App Engine上进行简单的教程 ,但是当我尝试运行mvn appengine:devserver命令时,我得到了这个奇怪的丢失目录错误:

[INFO] guestbook ......................................... FAILURE [  0.228 s]
[INFO] guestbook-war ..................................... SKIPPED
[INFO] guestbook-ear ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.446 s
[INFO] Finished at: 2014-05-06T12:03:51-08:00
[INFO] Final Memory: 9M/176M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.4:devserver (default-cli) on project guestbook: The application directory does not exist : /Users/davidt/GoogleAppEngineProjects/guestbook/target/guestbook-1.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

What is going on? 到底是怎么回事? When was I supposed to have created that snapshot? 我什么时候应该创建该快照?

Note: I am not sure if this matters, but I've been deleting and recreating the project multiple times under the same folder. 注意:我不确定这是否重要,但我一直在同一文件夹下多次删除并重新创建项目。

You have to run mvn appengine:devserver in the guestbook-ear folder. 你必须在guestbook-ear文件夹中运行mvn appengine:devserver I was running it on the top level. 我在顶层运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM