To upload the app:
Open the file
guestbook/target/guestbook-1.0-SNAPSHOT/WEB-INF/appengine-generated/datastore-indexes-auto.xmlin an editor and make sure that it contains the following:
<datastore-indexes> <datastore-index kind="Greeting" ancestor="true" source="manual"> <property name="date" direction="desc"/> </datastore-index> </datastore-indexes>
Typically, you have to change
Change directory to
guestbook, and invoke Maven as follows:
The first time you upload, you'll be prompted to supply login information and you will be led through the login process via the browser. Follow the prompts. You may need to copy the success code from the browser into the command line at the end of the login process. (This information is remembered after you do it once.)
Wait for the upload to complete. If the upload succeeds, you'll see a message similar to this one:
98% Uploading index definitions. Update for module default completed successfully. Success. Cleaning up temporary files for module default...
In your browser, visit the url
https://<project-ID>.appspot.comto run the application hosted on App Engine, replacing
<project-ID>with your project ID.