File tree 3 files changed +12
-8
lines changed 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 2
2
This sample demonstrates how to use the App Identity APIs on Google App Engine
3
3
4
4
## 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
6
10
7
11
## Deploying
8
12
In the following command, replace YOUR-PROJECT-ID with your
9
13
[ Google Cloud Project ID] ( https://developers.google.com/console/help/new/#projectnumber )
10
14
and YOUR-VERSION with a suitable version identifier.
11
15
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
13
17
14
18
## Setup
15
19
To 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:
19
22
20
23
1 . Update the <application > tag in src/main/webapp/WEB-INF/appengine-web.xml with your project name
21
24
1 . Update the <version > tag in src/main/webapp/WEB-INF/appengine-web.xml with your version name
22
25
23
26
You will now be able to run
24
27
25
- $ mvn appengine:update
28
+ $ mvn gcloud:deploy
26
29
27
30
without 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.
94
94
</plugin >
95
95
<plugin >
96
96
<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 >
99
99
</plugin >
100
100
</plugins >
101
101
</build >
Original file line number Diff line number Diff line change 3
3
<application >YOUR-PROJECT-ID</application >
4
4
<version >YOUR-VERSION-ID</version >
5
5
<threadsafe >true</threadsafe >
6
+ <vm >true</vm >
6
7
</appengine-web-app >
You can’t perform that action at this time.
0 commit comments