File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22This sample demonstrates how to use the App Identity APIs on Google App Engine
33
44## Running locally
5- $ mvn appengine:devserver
5+ This example uses the
6+ [ Maven gcloud plugin] ( https://cloud.google.com/appengine/docs/java/managed-vms/maven ) .
7+ To run this sample locally:
8+
9+ $ mvn gcloud:run
610
711## Deploying
812In the following command, replace YOUR-PROJECT-ID with your
913[ Google Cloud Project ID] ( https://developers.google.com/console/help/new/#projectnumber )
1014and YOUR-VERSION with a suitable version identifier.
1115
12- $ mvn appengine:update -Dappengine.appId =YOUR-PROJECT-ID -Dappengine.version =YOUR-VERSION
16+ $ mvn gcloud:deploy -Dversion =YOUR-VERSION -Dgcloud_project =YOUR-PROJECT-ID
1317
1418## Setup
1519To save your project settings so that you don't need to enter the
16- ` -Dappengine.appId=YOUR-CLOUD-PROJECT-ID ` or
17- ` -Dappengine.version=YOUR-VERSION-NAME ` parameters, you can make the following
18- changes:
20+ ` -Dgcloud_project=YOUR-CLOUD-PROJECT-ID ` or ` -Dversion=YOUR-VERSION-NAME `
21+ parameters, you can make the following changes:
1922
20231 . Update the <application > tag in src/main/webapp/WEB-INF/appengine-web.xml with your project name
21241 . Update the <version > tag in src/main/webapp/WEB-INF/appengine-web.xml with your version name
2225
2326You will now be able to run
2427
25- $ mvn appengine:update
28+ $ mvn gcloud:deploy
2629
2730without the need for any additional paramters.
Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ Copyright 2015 Google Inc. All Rights Reserved.
9494 </plugin >
9595 <plugin >
9696 <groupId >com.google.appengine</groupId >
97- <artifactId >appengine -maven-plugin</artifactId >
98- <version >${appengine.target.version} </version >
97+ <artifactId >gcloud -maven-plugin</artifactId >
98+ <version >2.0.9.90.v20151210 </version >
9999 </plugin >
100100 </plugins >
101101 </build >
Original file line number Diff line number Diff line change 33 <application >YOUR-PROJECT-ID</application >
44 <version >YOUR-VERSION-ID</version >
55 <threadsafe >true</threadsafe >
6+ <vm >true</vm >
67</appengine-web-app >
You can’t perform that action at this time.
0 commit comments