How to Create Google App Engine App using Maven

Generate guestbook maven project from the command line:
mvn archetype:generate -Dappengine-version=1.9.37 -Dapplication-id=your-app-id -Dfilter=com.google.appengine.archetypes:
Then select from the artifact list by supplying the number.

If you want to create the complete, ready-to-run guestbook sample app, supply the number corresponding to com.google.appengine.archetypes:guestbook-archetype.

If you want to create an empty project that contains the required directory structure and files, ready for your own classes, supply the number corresponding to com.google.appengine.archetypes:appengine-skeleton-archetype.

Select the most recent version from the displayed list of available archetype versions by accepting the default.

See also:

Maven Google App Engine archetypes


You can also do it from Eclipse: -> New a Maven Project -> Add the New Maven Archetype From Google.
$ mvn clean install
Use maven goal
$ appengine:devserver
to run the app.

Use maven goal
$ appengine:update
to upload to Google App Engine.

Refer to Google App Engine maven goals

You can check out the code from:

https://github.com/i88ca/gae-guestbook-maven

See also:

How to fix: DatastoreNeedIndexException: The index for this query is not ready to serve in Google App Engine

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...