How to add a project to a GWT / GAE project dependency

I created a "google project" ... went a new web project with the gwt / gae plugin. Now I want to reference the code in another project.

  • I had a project for the path to build and run the project. GAE does not find classes in the dependency project.

  • I tried to add a dynamic web module facet to a google project, and then edit the deployment assembly and add such a project ... didn't work.

As I launch the project, "runs as a web application."

How to add a project as a dependency to a google project? I use Helios Eclipse, the latest google plugin, gwt and gae.

UPDATE:

This is actually not a gwt project - it does not have a front end. This is a GAE project on the back.

+3
source share
2 answers

For deployment, you cannot currently (with Gwt 2.2) deploy a gwt project that directly references other gwt projects. Instead, you need to export other projects to jar files and include jar files in the build path of the main project. As long as these jar files are present in war / WEB-INF / lib, it will be placed correctly.

For testing purposes, you can refer to the projects themselves in the build path for the placement mode, but as soon as you deploy it, you need to use the exported jar in the lib directory.

+2
source

All Articles