简体   繁体   English

如何使用谷歌eclipse插件创建具有应用程序引擎模块的gwt gae

[英]how to create gwt gae with app engine modules using google eclipse plugin

How to create a new GWT and GAE project with modules using google eclipse plugin in Java? 如何使用Java中的google eclipse插件创建一个包含模块的新GWT和GAE项目? I tried using make a new web applications from the eclipse, but it just create me a GWT and GAE project without modules. 我尝试使用eclipse创建一个新的Web应用程序,但它只是创建了一个没有模块的GWT和GAE项目。

Thanks. 谢谢。

You'll probably want to first create a WTP project using GPE, because to use modules you'll need to create an EAR project. 您可能希望首先使用GPE创建WTP项目,因为要使用创建EAR项目所需的模块。 This is described here: 这在这里描述:

https://developers.google.com/appengine/docs/java/webtoolsplatform https://developers.google.com/appengine/docs/java/webtoolsplatform

You'll create modules, which will each be a dynamic web project. 您将创建模块,每个模块都是一个动态Web项目。 Your GWT app will be one of those. 您的GWT应用程序将是其中之一。 And follow the instructions for modules here: 并按照模块说明进行操作:

https://developers.google.com/appengine/docs/java/modules/ https://developers.google.com/appengine/docs/java/modules/

Note that there will be two Google related items when you right-click your project: Google and Google App Engine WTP. 请注意,右键单击项目时将有两个与Google相关的项目:Google和Google App Engine WTP。 Commands related to app engine in the Google menu don't seem to work. Google菜单中与app engine相关的命令似乎不起作用。 Instead use the app engine related commands in the Google App Engine WTP menu. 而是使用Google App Engine WTP菜单中的app引擎相关命令。

Apparently, it is an open feature request to do this programmatically: https://code.google.com/p/google-web-toolkit/issues/detail?id=3584 and https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=121 显然,这是一个以编程方式执行此操作的开放功能请求: https//code.google.com/p/google-web-toolkit/issues/detail?id = 3584https://code.google.com/p /谷歌-插件换蚀/问题/细节?ID = 121

There is a proposed workaround: 有一个建议的解决方法:

GWT Compile and copy the /war/ output into a standard Dynamic Web Project. GWT编译并将/ war / output复制到标准的Dynamic Web Project中。

I have tested this workaround and it works. 我已经测试了这种解决方法,但它确实有效。 Simply copy the Google Web Applications Project's "war" directory into the web content directory (default: "WebContent") of a stub Dynamic Web Project . 只需将Google Web Applications Project的 “war”目录复制到存根动态Web项目的Web内容目录(默认:“WebContent”)即可。

For the local AppEngine dev server for Dynamic Web Projects and EAR projects it is important that project names do not contain a space. 对于动态Web项目和EAR项目的本地AppEngine dev服务器,项目名称不包含空格很重要。 Moreover, this also applies to the AppEngine agent file path, see Error opening zip file or JAR manifest missing : C:\\Program . 此外,这也适用于AppEngine代理文件路径,请参阅错误打开zip文件或缺少JAR清单:C:\\ Program

How to create a new GWT and GAE project with modules using google eclipse plugin in Java? 如何使用Java中的google eclipse插件创建一个包含模块的新GWT和GAE项目?

Do check in each option to create project with sample code. 检查每个选项以使用示例代码创建项目。

  • Use Google Web Toolkit 使用Google Web Toolkit
  • User Google App Engine 用户Google App Engine
  • Sample Code : It creates sample code with module as you expect. 示例代码 :它按预期创建带有模块的示例代码。

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

相关问题 使用appengine-skeleton-archetype的GWT GAE App Engine模块 - GWT GAE app engine modules using appengine-skeleton-archetype Google App Engine / GWT / Eclipse插件新手问题-如何自动构建客户端资源? - Google App Engine/GWT/Eclipse Plugin Newbie Question- how to autobuild client side resources? 如何在使用GAE Maven插件时在IDEA中调试Java Google App Engine应用程序? - How can I debug a Java Google App Engine app in IDEA while using the GAE Maven plugin? 如何使用Google App Engine创建简单的发布/获取API,从而轻松调用GAE数据库? - How to create simple post/get API making simple calling to GAE database using Google App Engine? 带有GWT的App Engine模块 - App Engine Modules with GWT GWT模块与Google App Engine模块不同,对吗? - GWT modules are different from Google App Engine Modules, right? 如何将appcfg.py用于使用谷歌的eclipse插件创建的google-app-engine项目? - how to use appcfg.py for google-app-engine projects created using google's eclipse plugin? 使用旧的Eclipse Google插件部署App Engine项目时出错 - Error deploying app engine project using Old Eclipse google plugin 将Arquillian Test与Google App Engine(GAE)结合使用 - Using Arquillian Test with Google App Engine (GAE) 谷歌应用引擎:maven或eclipse谷歌插件 - Google app engine: maven or eclipse google plugin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM