简体   繁体   English

Appengine端点Maven与/ generated-sources构建错误

[英]Appengine Endpoints Maven Build Error with /generated-sources

I am trying to make appengine endpoints work with Maven, but I get the following error every time, i followed the appengine endpoints doc, I couldn't able to find what went wrong, 我试图让appengine端点与Maven一起工作,但每次都会出现以下错误,我跟着appengine端点doc,我无法找到出错的地方,

Error is: 错误是:

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:war (default-war) on project Test: Execution default-war of goal org.apache.maven.plugins:maven-war-plugin:2.3:war failed: basedir /Users/Ramesh/git/endpoints/demo/Test/target/generated-sources/appengine-endpoints does not exist 无法执行目标org.apache.maven.plugins:maven-war-plugin:2.3:war(default-war)on project测试:执行default-war of goal org.apache.maven.plugins:maven-war-plugin: 2.3:战争失败:basedir / Users / Ramesh / git / endpoints / demo / Test / target / generated-sources / appengine-endpoints不存在

How can I make it work with Maven? 如何让它与Maven一起使用?

I recommend downloading the source for the "hello world" of Google Cloud Endpoints from here , and taking a peek at their POM file. 我建议从这里下载Google Cloud Endpoints的“hello world”来源,并查看他们的POM文件。 The issue for me was that I did not have the "appengine-maven-plugin" defined in the correct POM - it needs to be in the WAR's POM so that it can sniff the metadata and generate the right output. 对我来说问题是我没有在正确的POM中定义“appengine-maven-plugin” - 它需要在WAR的POM中,以便它可以嗅探元数据并生成正确的输出。

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

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