Deploy GWT App to Google App Engine

414 views
Skip to first unread message

Stefan Falk

unread,
Mar 6, 2016, 10:45:42 AM3/6/16
to GWT Users
Can somebody tell me how I can deploy my GWT App to the Google App engine [1]?

Since I am using gwt-maven-archetype I cannot use the convenient Google Plugin for Eclipse.

I've googled a whole day but I can't find anything. I know that there is a command line tool that is supposed to do that but I can't remember where I saw it or how it's called..

BR; Stefan


[1] http://stackoverflow.com/questions/35817916/how-to-deploy-gwt-app-to-google-app-engine

Thomas Broyer

unread,
Mar 6, 2016, 12:22:27 PM3/6/16
to GWT Users
Isn't the appengine-maven-plugin offering a goal to do the upload?

Stefan Falk

unread,
Mar 6, 2016, 3:05:53 PM3/6/16
to GWT Users
Well, I don't know. I can remember when I did it last time it was a one-liner in the command line. I think I had something like a secret or API key or something like that and I could deploy the web application to GAE. 

I was searching and searching but I can't find that anymore. How do you deploy your gwt-maven-archetype to GAE (if you do)?

Greg

unread,
Mar 6, 2016, 3:16:22 PM3/6/16
to GWT Users

Stefan Falk

unread,
Mar 7, 2016, 10:08:37 AM3/7/16
to GWT Users
I already have a project of type gwt-maven-archetypes. I don't want to change the whole project to another archetype.

Thomas Broyer

unread,
Mar 7, 2016, 10:32:30 AM3/7/16
to GWT Users


On Monday, March 7, 2016 at 4:08:37 PM UTC+1, Stefan Falk wrote:
I already have a project of type gwt-maven-archetypes. I don't want to change the whole project to another archetype.

Why would you "change the whole project to another archetype"? An archetype is only a skeleton-generator; the doc talks about the provided appengine archetype to make it easier for people knowing relatively few things about Maven; but that doesn't mean you *have* to use the archetypes.
From what I read here, you'd do something like:

mvn install (to make your shared and client artifacts available to the server one outside the reactor build)
cd *-server && mvn appengine:update

Of course, that's after you configured the appengine-maven-plugin in the *-server project's POM.

Otherwise, the tool seems to be the com.google.appengine.tools.admin.AppCfg class in the appengine-tools-api.jar from the AppEngine SDK, that you'd call with the "update" command and your WAR file (or exploded  WAR directory, i.e. *-server/target/*-server-*/ after a "mvn package", I can't tell) as arguments.
(note: it took me 10 minutes to find that information from the Maven and Ant documentation pages and a bit of googling; I never used AppEngine)

Stefan Falk

unread,
Mar 7, 2016, 10:37:44 AM3/7/16
to GWT Users
Maybe I have to ask: How can I integrate the appengine-maven-plugin correctly into the gwt-maven-archetypes archetype?

BR; Stefan


On Sunday, 6 March 2016 18:22:27 UTC+1, Thomas Broyer wrote:

Stefan Falk

unread,
Mar 7, 2016, 10:49:21 AM3/7/16
to GWT Users
Ah sorry, I saw that too late.

Well, okay so my assumption was right. What I did was placing the plugin into the pom.xml of my myapp-server module:

<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${appengine.version}</version>
<configuration>
<enableJarClasses>false</enableJarClasses>
<version>${app.version}</version>
</configuration>
</plugin>
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>gcloud-maven-plugin</artifactId>
<version>${gcloud.plugin.version}</version>
<configuration>
<set_default>true</set_default>
</configuration>
</plugin>

If that is correct so far I think I should be able to make it work. At the moment though maven is complaining about that it can't find the plugin "appengine" ..

Rogelio Flores

unread,
Mar 8, 2016, 11:58:17 AM3/8/16
to GWT Users
I started my gwt + appengine project with Brandon's archetype which already does everything for me:


This uploads my app (after you build it as mentioned already in the thread)

mvn appengine:update

I don't think I changed many things in the pom.xml besides updating to the latest appengine SDK. At minimum, you can take a look at the pom.xml file to know how to configure it all.

Stefan Falk

unread,
Mar 11, 2016, 10:18:10 AM3/11/16
to GWT Users
Would that work for an already existing project?

My problem is this: https://code.google.com/p/googleappengine/issues/detail?can=2&start=0&num=100&q=Execution%20default&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log&groupby=&sort=&id=12804

at the moment. appengine is either against me or I am doing something wrong and I can't figure out what..

BR; Stefan

Gilberto

unread,
Mar 13, 2016, 8:01:17 PM3/13/16
to GWT Users
Hi Stefan,

Did you manage to get it working?

I put a comment on the SO question you made, but I think you didn't see yet.

I have multiple GWT projects running on App Engine, and one of them is open-sourced, maybe it can help you out: https://github.com/gilberto-torrezan/feel-vision (I didn't use any archetypes).

Stefan Falk

unread,
Mar 16, 2016, 7:45:01 AM3/16/16
to GWT Users
Hi Gilberto! :)

In fact I saw your comment and I planned to reply as soon as I was going to give the deployment another try XD

My project is at the moment still a little away from actually being deployed to the web but I wanted to build my own toolchain for deployment.

At the moment I am very busy with my actual work and university - but I will take a look and update my question on SO with the trace output as you suggested.

Thank you for helping me here! :)
Reply all
Reply to author
Forward
0 new messages