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

Comments

Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows

Fixed: ImportError: No module named utilities.common.tools