Has anyone used Maven, Grails, and App Engine together?
I can use Maven with Grails and Grails with App Engine, but using them in concert gives me the following error:
The command 'grails run-app' is not supported with AppEngine. Use 'grails app-engine' to start the application
Is there any way to "pass through" the Maven goal to access app-engine plugin for grails?
AFAIK, the Maven Grails plugin does not support the features introduced by Grails AppEngine Plugin yet. So, for now, you have to run (not sure what you mean by "pass through BTW):
grails app-engine run
In the command prompt, you can run:
mvn grails:exec -Dcommand="app-engine" -Dargs="run"
Which will do exactly what you want it to do.
Related
We have a multi-module (war-packaged) project that uses com.google.appengine - appengine-maven-plugin target being ear file.
We have migrated succesfully to Java8 and EndpointsV2. It builds and runs fine in Cloud. However the following requirement is still a bit questionmark in the migration instructions. What is the reason behind this incompatibility and requirement? Or is it just related to for example "discovery docs" that we are not using anyway?
The old App Engine Maven plugin, with group com.google.appengine, is incompatible with the Endpoints Framework plugin. You must use the new version shown above
https://cloud.google.com/endpoints/docs/frameworks/java/migrating
If you aren't using discovery docs or generated client libraries and are only using Endpoints as a library dependency, you can remove the Endpoints plugin and the error should go away.
I know that Google support password-less GAE app uploads using appcfg.{sh,cmd], as described here: https://developers.google.com/appengine/docs/java/tools/uploadinganapp#Passwordless_Login_with_OAuth2
However, I would like to know if I can do the same using Google's official Maven GAE plugin. There is a goal called appengine:update that is used for uploading the local GAE app to the cloud. However, I cannot find information anywhere as to whether this will support OAuth2. Anyone know how I can combine OAuth2 and this Maven plugin?
The reason why is because I am using Jenkins to build my project and I would much rather prefer to upload my application automatically using a Maven goal during the build instead of running a script (more complex than Maven goal) as a post-build step.
It seems that it have been improved in recent versions of GAE Maven plugin (no appcfg invocation necessary). It is enough to invoke:
mvn clean appengine:update
if there is no ~/.appcfg_oauth2_tokens_java it will pop your browser, and will ask for credential to Google Account. After successful authentication you are presented with OAuth2 token. Paste it in the terminal window, where you invoked mvn and you're done.
It appears that appengine:update automatically supports OAuth2. I just had to run a manual build with appcfg.sh. If that shell script was on your PATH, then the command looks something like this:
appcfg.sh --oauth2 update myapp/war-directory
Once I follow the manual steps to deploy my app and download the OAuth2 token for my user, I can run mvn appengine:udpate. This will detect my OAuth2 token and not require any manual interaction.
Is there a Gradle plugin (compatible with Gradle 0.9.2) that'll let me deploy to Google App Engine 1.4.2?
If yes, how can I integrate it (build.gradle snippet)?
Axel,
today is your lucky day. ;-) I just released a Gradle GAE plugin that provides tasks for uploading, running and managing Google App Engine Java projects. Give it a shot. The
documentation describes setup and convention properties in detail. Let me know if you have feedback or feature requests.
The Spring Security build uses gradle to deploy a sample app to GAE. You could copy that (see the sample app gradle file), or clone the repo and use it in place as a guide. It uses a simple internal plugin.
I've got a python app and I want to deploy it. I'm using Aptana Studio 3. It's based on Eclipse but will not install the plugin due to dependancy issues. Basically I'm wondering what are my options for deploying my app outside of Eclipse?
Just use the appcfg tool included with the GAE SDK.
appcfg.py update path_to_app
http://code.google.com/appengine/docs/python/tools/uploadinganapp.html#Uploading_the_App
i had very nice dev. env. - clojure, maven and jetty with hot deploy. now i moved to google appengine and i can not figure out how to configure maven achieve hot deploy
There is a bug with gae:run that currently doesn't hot deploy changes (see Issue 47). Maybe try the suggested workaround.
There is a google app engine plugin for maven that supports deploy. Hot-deploy is not mentioned but this is where I'd start. Not sure if it works for clojure but I see not reason why it wouldn't.