diff --git a/endpoints/getting-started/pom.xml b/endpoints/getting-started/pom.xml
index 9fdc7a70da5..9d79c4078b2 100644
--- a/endpoints/getting-started/pom.xml
+++ b/endpoints/getting-started/pom.xml
@@ -6,7 +6,7 @@
war
1.0-SNAPSHOT
com.example.flexible.endpoints
- managed-vms-endpoints
+ flexible-endpoints
doc-samples
@@ -15,6 +15,16 @@
../..
+
+ 1.8
+ 1.8
+
+ 1.0.0
+ 9.3.8.v20160314
+
+ false
+
+
javax.servlet
@@ -39,9 +49,8 @@
com.google.cloud.tools
appengine-maven-plugin
- 0.1.2
+ ${appengine.maven.plugin}
- beta
@@ -52,19 +61,10 @@
false
-
- org.apache.maven.plugins
- 3.3
- maven-compiler-plugin
-
-
- 1.7
-
-
org.eclipse.jetty
jetty-maven-plugin
- 9.3.8.v20160314
+ ${jetty.maven.plugin}
diff --git a/endpoints/getting-started/src/main/appengine/Dockerfile b/endpoints/getting-started/src/main/appengine/Dockerfile
index 49864ba44c8..063636ed556 100644
--- a/endpoints/getting-started/src/main/appengine/Dockerfile
+++ b/endpoints/getting-started/src/main/appengine/Dockerfile
@@ -1,4 +1,4 @@
FROM gcr.io/google_appengine/jetty9
-ADD managed-vms-endpoints-1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war
+ADD endpoints-1.0-SNAPSHOT.war $JETTY_BASE/webapps/root.war
ADD . /app
diff --git a/endpoints/getting-started/src/main/appengine/app.yaml b/endpoints/getting-started/src/main/appengine/app.yaml
index 6d375d8db22..5882f5a8952 100644
--- a/endpoints/getting-started/src/main/appengine/app.yaml
+++ b/endpoints/getting-started/src/main/appengine/app.yaml
@@ -1,5 +1,5 @@
runtime: custom
-vm: true
+env: flex
handlers:
- url: /.*
diff --git a/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/AuthInfoServlet.java b/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/AuthInfoServlet.java
index c5bc081040c..233ea414239 100644
--- a/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/AuthInfoServlet.java
+++ b/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/AuthInfoServlet.java
@@ -14,10 +14,12 @@
* limitations under the License.
*/
-package com.example.managedvms.endpoints;
+package com.example.endpoints;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
import java.io.IOException;
-import java.io.PrintWriter;
import java.util.Base64;
import javax.servlet.annotation.WebServlet;
@@ -25,9 +27,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.google.gson.Gson;
-import com.google.gson.JsonObject;
-
/**
* A servlet that returns authentication information.
* See swagger.yaml for authentication mechanisms (e.g. JWT tokens, Google ID token).
diff --git a/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/EchoServlet.java b/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/EchoServlet.java
index e54da65bd43..40e0f1f5038 100644
--- a/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/EchoServlet.java
+++ b/endpoints/getting-started/src/main/java/com/example/managedvms/endpoints/EchoServlet.java
@@ -14,11 +14,14 @@
* limitations under the License.
*/
-package com.example.managedvms.endpoints;
+package com.example.endpoints;
+
+import com.google.gson.Gson;
+import com.google.gson.JsonObject;
+import com.google.gson.JsonParseException;
+import com.google.gson.stream.JsonReader;
import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
import java.util.Map;
import javax.servlet.annotation.WebServlet;
@@ -26,11 +29,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.google.gson.Gson;
-import com.google.gson.JsonObject;
-import com.google.gson.JsonParseException;
-import com.google.gson.stream.JsonReader;
-
/**
* A servlet that echoes JSON message bodies.
*/