I'm using Google App Engine to create a project consisting of multiple Google Modules. How do I set up my project (using Maven) so that I can share source code such as Objectify object model definitions, shared utility code, and unit test code across the modules?
I'm hoping the answer is simple and that I can just use Maven as suggested in answers such as these:
- How do you use Maven to share source code for two projects?
- How to create shared source folder across multiple projects in Eclipse?
- For test code: Sharing src/test classes between modules in a multi-module maven project
- For test code: Share test resources between maven projects
- Eclipse Linked Resources: https://mcmap.net/q/487350/-is-there-a-way-to-setup-linked-resources-relative-to-the-project-file. Is this compatible with Maven though?
However, I'm concerned there might be something special about Google App Engine modules that makes them different from Maven modules. And then maybe the approaches above won't work.
As an example of why I'm concerned, notice that Google says "Although Java EE supports WAR files, module configuration uses unpacked WAR directories only." yet some of the solutions given above suggest packaging the shared code into JAR files. I realize WAR and JAR are different but I'm worried I'll waste my time trying to make something work that can't.
Any advice on how to share code among Google App Engine modules?