[英]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 = 3584和https://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. 检查每个选项以使用示例代码创建项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.