简体   繁体   English

是否已弃用Maven目标appengine:backends_configure?

[英]Is maven goal appengine:backends_configure deprecated?

The following command says that there's a goal called "appengine:backends_configure" for the Google App Engine Maven Plugin ( https://code.google.com/p/appengine-maven-plugin/ )? 以下命令说Google App Engine Maven插件( https://code.google.com/p/appengine-maven-plugin/ )有一个名为“ appengine:backends_configure”的目标吗?

I see this goal is available when I run this command: 运行此命令后,我看到此目标可用:

mvn help:describe -Dplugin=appengine

Here's what it looks like: 看起来是这样的:

mosofskcbookpro:myguestbooktrial mosofsky$ mvn help:describe -Dplugin=appengine [INFO] Scanning for projects... [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] mosofskcbookpro:myguestbooktrial mosofsky $ mvn帮助:描述-Dplugin = appengine [INFO]扫描项目... [INFO] [INFO]使用构建器org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder进行线程计数之1 [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building myguestbooktrial 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-help-plugin:2.2:describe (default-cli) @ myguestbooktrial --- [INFO] com.google.appengine:appengine-maven-plugin:1.9.14 [INFO] ----------------------------------------------- ------------------------- [INFO]构建myguestbooktrial 1.0-SNAPSHOT [INFO] -------------- -------------------------------------------------- -------- [INFO] [INFO] --- maven-help-plugin:2.2:describe(default-cli)@ myguestbooktrial --- [INFO] com.google.appengine:appengine-maven-plugin :1.9.14

Name: A Maven Plugin for running and deploying appengine applications Description: The App Engine maven plugin which can be used to interact with both the development server and the remote runtime. 名称:用于运行和部署Appengine应用程序的Maven插件说明:App Engine maven插件,可用于与开发服务器和远程运行时进行交互。 Group Id: com.google.appengine Artifact Id: appengine-maven-plugin Version: 1.9.14 Goal Prefix: appengine 组ID:com.google.appengine工件ID:appengine-maven-plugin版本:1.9.14目标前缀:appengine

This plugin has 29 goals: 这个插件有29个目标:

appengine:backends_configure Description: Configure the specified backend. appengine:backends_configure说明:配置指定的后端。 ... ...

According to Google, though, backends are deprecated ( https://cloud.google.com/appengine/docs/java/config/backends ). 不过,根据Google的说法,不建议使用后端( https://cloud.google.com/appengine/docs/java/config/backends )。

So is the appengine-maven-plugin just out of date? 那么appengine-maven-plugin是否已过时? When it refers to backends, is that the deprecated backend or some other backend? 当涉及后端时,是已弃用的后端还是其他后端? Is there a new version of appengine-maven-plugin that can configure modules? 是否有可以配置模块的新版本的appengine-maven-plugin?

You can use modules with the appengine-maven-plugin by creating an Enterprise Archive (EAR) project and putting each module in it's own WAR. 您可以通过创建Enterprise Archive(EAR)项目并将每个模块放入其自己的WAR中来将模块与appengine-maven-plugin一起使用。 A contributor's example project which does this is at [1]. 贡献者的示例项目在[1]。 Using Maven with modules has some limitations, like not being able to share the same datastore on the development server. 将Maven与模块一起使用存在一些限制,例如无法共享开发服务器上的相同数据存储。 In this case you'd want to set up an Eclipse WTP project as per [2]. 在这种情况下,您想按照[2]设置Eclipse WTP项目。

The documentation on this is somewhat lacking, and it would be nice if Google provided an archetype for using modules. 这方面的文档有些缺乏,如果Google提供了使用模块的原型,那就太好了。

[1] https://github.com/GoogleCloudPlatform/appengine-modules-sample-java [1] https://github.com/GoogleCloudPlatform/appengine-modules-sample-java
[2] Serving multiple GAE modules from one development server? [2] 在一台开发服务器上服务多个GAE模块?

As far as 'appengine:backends_configure' goes, since backends are still supported for now I assume the goal isn't going away any time soon. 就“ appengine:backends_configure”而言,由于目前仍支持后端,因此我认为目标不会很快消失。

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

相关问题 Maven,配置具体目标 - Maven, configure specific goal 'com.google.appengine.api.backends.BackendService'已弃用 - 'com.google.appengine.api.backends.BackendService' is deprecated alternative 如何配置依赖的Maven目标? - How to configure dependent maven goal? Appengine后端-> 500错误 - Appengine backends -> 500 Error DevSever 目标运行期间的 Appengine 模块 Maven 错误 - Appengine Modules Maven Error during DevSever Goal Run Maven GAE无法执行目标com.google.appengine:appengine-maven-plugin:1.9.12:devserver [...] NoSuchElementException - Maven GAE Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.12:devserver […] NoSuchElementException 在插件com.google.appengine:appengine-maven-plugin中找不到目标“运行” - Could not find goal 'run' in plugin com.google.appengine:appengine-maven-plugin 自动缩放后端-Appengine Java - Scaling Backends Automatically - Appengine Java mvn appengine:run 无法执行目标 com.google.cloud.tools:appengine-maven-plugin:2.2.0:run mvn appengine:deploy 工作正常 - mvn appengine:run fails to execute goal com.google.cloud.tools:appengine-maven-plugin:2.2.0:run mvn appengine:deploy works fine 在Google Appengine中的版本/后端之间共享会话 - Share sessions between versions/backends in google appengine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM