Possible to use Google Modules with Google Plugin

2019-02-19 14:38发布

问题:

My goal is to develop Java applications that use the new Google Modules. I’d like to use the Google Plugin for Eclipse because it’s simple to debug and upload to 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.

According to this comment it’s possible to use Google Modules with the Eclipse Web Tools Platform with Google App Engine. And according to this documentation, Eclipse Web Tools Platform with Google App Engine is a component included in 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?

回答1:

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:

Essentially, you'll have a separate Dynamic Web Project for each module and EAR project is the container for all those modules.

Now, when you want to run your whole "modularized" app, right click on the EAR project and select Run As => Run on Server.