简体   繁体   English

可以将Google模块和Eclipse的Google插件一起使用吗?

[英]Possible to use Google Modules with Google Plugin for Eclipse?

My goal is to develop Java applications that use the new Google Modules. 我的目标是开发使用新Google模块的Java应用程序。 I'd like to use the Google Plugin for Eclipse because it's simple to debug and upload to Google. 我想使用适用于Eclipse的Google插件,因为它很容易调试并上传到Google。

The problem is I can't tell if it's possible to use the Google Plugin for Eclipse for Java applications that use Google Modules. 问题是我无法确定是否可以针对使用Google模块的Java应用程序使用Eclipse的Google插件。

According to this comment it's possible to use Google Modules with the Eclipse Web Tools Platform with Google App Engine. 根据此评论 ,可以将带有Google App Engine的Eclipse Web Tools Platform与Google Modules一起使用。 And according to this documentation , Eclipse Web Tools Platform with Google App Engine is a component included in Google Plugin for Eclipse. 并且根据此文档 ,带有Google App Engine的Eclipse Web Tools Platform是Google Plugin for Eclipse中包含的组件。 But does that mean it's possible to use the Google Plugin for Eclipse for Java applications that use Google Modules? 但这是否意味着可以使用Google Plugin for Eclipse for Java应用程序使用Google模块?

Yeah, it's exactly what that comment says. 是的,这正是评论所说的。

When you create a new Dynamic Web Project, make sure you select "Add project to an EAR" and select an existing EAR project or create a new one: 创建新的Dynamic Web项目时,请确保选择“将项目添加到EAR”并选择现有的EAR项目或创建一个新的:

动态Web项目对话框

Essentially, you'll have a separate Dynamic Web Project for each module and EAR project is the container for all those modules. 本质上,每个模块都有一个单独的Dynamic Web Project,而EAR项目是所有这些模块的容器。

Now, when you want to run your whole "modularized" app, right click on the EAR project and select Run As => Run on Server. 现在,当您要运行整个“模块化”应用程序时,右键单击EAR项目,然后选择“运行方式=>在服务器上运行”。

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

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