本文介绍了可以生成appengine-application.xml吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关模块的Google App Engine文档( https://cloud.google .com/appengine/docs/java/modules/#Java_Configuration )描述了一些.xml文件.有没有办法用Maven生成所有这些文件?

The Google App Engine documentation for modules (https://cloud.google.com/appengine/docs/java/modules/#Java_Configuration) describes a few .xml files. Is there a way to generate all of these files with Maven?

某些文件似乎必须手动创建,尤其是appengine-application.xml和application.xml.那是真的还是我可以以某种方式使用Maven?

Some of the files seem like they have to be manually created, particularly appengine-application.xml and application.xml. Is that true or can I use Maven somehow?

推荐答案

否.但是请参见使用Maven创建AppEngine项目

它说明了如何使用App Engine提供的Maven App Engine工件(称为appengine-skeleton-archetype)来创建新项目.

It explains how to use the App Engine-provided Maven App Engine artifact called appengine-skeleton-archetype to create a new project.

然后,使用生成的名为src/main/webapp/WEB-INF/appengine-web.xml的文件

Then, configure your application using the generated file called src/main/webapp/WEB-INF/appengine-web.xml

有关使用Maven的完整文档,请参见使用Apache Maven ,其中包含更好地链接到配置appengine-web.xml

Full documentation on using Maven is at Using Apache Maven which has a better link to Configuring appengine-web.xml

要使用Maven生成文件,请参见有关此过程的博客注意:看来,Maven Central存储库中的原型已更新为2.0.0-1.9.10,因此该部分过时的原型可以忽略.

To generate the files with Maven, see this blog on the process Note: it appears the archetypes at the Maven Central repo have been updated to 2.0.0-1.9.10, so the part of the archetype being outdate can be ignored.

要安装已经创建了appengine-application.xml或application.xml文件的项目,请参见将示例作为模板在以下位置查找它们:

To install a project that already has appengine-application.xml or application.xml files created, see this sample as a template Look for them under:

appengine-modules-sample-java / appengine-modules-ear / src / main / application / META-INF

这篇关于可以生成appengine-application.xml吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 23:20