Comments (7)
Here is where I got the idea:
(I could have misinterpreted it but this part of the documentation is very confusing to me)
https://cloud.google.com/appengine/docs/java/modules/
"An App Engine application that uses modules is organized as an unpacked Java Enterprise Archive (EAR) directory structure. The top-level EAR directory contains a single META-INF subdirectory, and a separate directory for each module in the app. These module directories are organized as unpacked Java Web Application Archives (WAR). Each WAR directory usually has the same name as the module it defines, but this is not required. Although Java EE supports WAR files, module configuration uses unpacked WAR directories only. App Engine's Java SDK includes an Apache Maven tool that can build a skeletal EAR structure for you."
The very first sentence is confusing. It uses ear structure but is not an Enterprise Application Project? Or is it? The directory structure described here is not the same as the sample. Here is says the modules are in the top level ear directory, but in the sample they are separate top level directories. It also talks about how the "Apache Maven tool can build a skeletal EAR structure". I do not find this to be the case-- it builds regular single war projects. I have tried both the skeletal and sample versions.
from appengine-modules-sample-java.
Eclipse m2 WTP supports Maven project, including Maven EAR project I think.
Import it in Eclipse via the import maven project.
Old eclipse projects do not support EAR project.
On Sun, Nov 30, 2014 at 2:02 PM, clocksmith [email protected]
wrote:
This looks like an ear maven project. According to this documentation:
https://cloud.google.com/appengine/docs/java/webtoolsplatform#enterprise_application_ear
this is not supported.
"Note: Currently, only Maven WAR projects are supported, not Maven EAR
projects"Also, the directory structure differs from the module overview
documentation.
https://cloud.google.com/appengine/docs/java/modules/Is this the suggested way to set up an app engine project using modules,
or should we use the way in the documentation? How do we convert an old
project in Eclipse?—
Reply to this email directly or view it on GitHub
#12
.
from appengine-modules-sample-java.
Sorry for not being more clear. I already have an eclipse GAE using Maven WAR. I am wondering how to get it to a be a Maven EAR project so that I can use modules.
from appengine-modules-sample-java.
yes, by creating a Maven project (EAR) like
https://github.com/GoogleCloudPlatform/appengine-modules-sample-java/blob/master/appengine-modules-ear/pom.xml
and replace the 2 modules there with your module.
On Sun, Nov 30, 2014 at 6:09 PM, clocksmith [email protected]
wrote:
Sorry for not being more clear. I already have an eclipse GAE using Maven
WAR. I am wondering how to get it to a be a Maven EAR project so that I can
use modules.—
Reply to this email directly or view it on GitHub
#12 (comment)
.
from appengine-modules-sample-java.
I have the project able to deploy, but am still having trouble.
Let me take a step back. I originally had a war project with multiple cloud endpoints running on an app engine frontend that I configured in the admin console. I needed to make another endpoint method, but I wanted it to use a different set of instances than my regular frontend, so I found app engine backends. I read that they were deprecated in favor in "modules" so I turned to the app engine modules.
All I want is for different URLs to dispatch to different sets of instances (with different configurations) controlled with a dispatch.xml. I am finding it impossible to get the information I need out of the documentation to set this up. I found this sample project and made a new Enterprise Application Project based off of this sample, because the sparse documentation says that app engine modules need to be set up as an ear project.
- Where do I put my source code that is shared among modules? (I currently have it in ear/src/main/java/ but I cannot get Eclipse to recognize it as source. I also read that ear projects don't have source code so this is probably wrong)
- Where is the documentation for setting up cloud endpoints with modules?
Thanks
from appengine-modules-sample-java.
Please send me the link for " sparse documentation says that app engine
modules need to be set up as an ear project"...We need to address this.
Regarding shared lib across web apps, you can create yet another jar type
Maven project that contains the lib content, and create a maven dependency
with the n war modules that rely on this shared lib.
On Tue, Dec 2, 2014 at 1:50 PM, clocksmith [email protected] wrote:
I have the project able to deploy, but am still having trouble.
Let me take a step back. I originally had a war project with multiple
cloud endpoints running on an app engine frontend that I configured in the
admin console. I needed to make another endpoint method, but I wanted it to
use a different set of instances than my regular frontend, so I found app
engine backends. I read that they were deprecated in favor in "modules" so
I turned to the app engine modules.All I want is for different URLs to dispatch to different sets of
instances (with different configurations) controlled with a dispatch.xml. I
am finding it impossible to get the information I need out of the
documentation to set this up. I found this sample project and made a new
Enterprise Application Project based off of this sample, because the sparse
documentation says that app engine modules need to be set up as an ear
project.
- Where do I put my source code that is shared among modules? (I
currently have it in ear/src/main/java/ but I cannot get Eclipse to
recognize it as source. I also read that ear projects don't have source
code so this is probably wrong)- Where is the documentation for setting up cloud endpoints with modules?
Thanks
—
Reply to this email directly or view it on GitHub
#12 (comment)
.
from appengine-modules-sample-java.
I happened to the same problem as clocksmith did.
from appengine-modules-sample-java.
Related Issues (16)
- Why prefix `google.com:` in <application> tag of appengine-application.xml? HOT 1
- No default module specified
- Error Updating Maven configuration - NPE HOT 2
- Maven property ${appengine.app.version} get interpolated
- How do I deploy certain module
- Cronjob extension?
- Does queue target work? HOT 6
- mvn appengine:<anything> do not work: no plugin found
- modules doesn't respect dispatch.xml HOT 4
- TaskOptions isn't able to schedule tasks to modules
- add gradle wrapper HOT 1
- How do you suggest making development bearable with this setup? HOT 7
- Each module on its own port HOT 2
- Build & deploy to test server issue HOT 1
- Errors when install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appengine-modules-sample-java.