8000 java-docs-samples/appengine-java11 at master · michalbrzezinskiorg/java-docs-samples · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"appengine-java11","repo":{"id":246936384,"defaultBranch":"master","name":"java-docs-samples","ownerLogin":"michalbrzezinskiorg","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2020-03-12T21:46:10.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/9696597?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1651494724.9876711","canEdit":false,"refType":"branch","currentOid":"7094eb110a451db3df2186f6eab7deaa45dac6eb"},"tree":{"items":[{"name":"appengine-simple-jetty-main","path":"appengine-java11/appengine-simple-jetty-main","contentType":"directory"},{"name":"cloudsql","path":"appengine-java11/cloudsql","contentType":"directory"},{"name":"custom-entrypoint","path":"appengine-java11/custom-entrypoint","contentType":"directory"},{"name":"gaeinfo","path":"appengine-java11/gaeinfo","contentType":"directory"},{"name":"guestbook-cloud-firestore","path":"appengine-java11/guestbook-cloud-firestore","contentType":"directory"},{"name":"helloworld-servlet","path":"appengine-java11/helloworld-servlet","contentType":"directory"},{"name":"http-server","path":"appengine-java11/http-server","contentType":"directory"},{"name":"kotlin-ktor","path":"appengine-java11/kotlin-ktor","contentType":"directory"},{"name":"micronaut-helloworld","path":"appengine-java11/micronaut-helloworld","contentType":"directory"},{"name":"oauth2","path":"appengine-java11/oauth2","contentType":"directory"},{"name":"quarkus-helloworld","path":"appengine-java11/quarkus-helloworld","contentType":"directory"},{"name":"spanner","path":"appengine-java11/spanner","contentType":"directory"},{"name":"sparkjava-helloworld","path":"appengine-java11/sparkjava-helloworld","contentType":"directory"},{"name":"springboot-helloworld","path":"appengine-java11/springboot-helloworld","contentType":"directory"},{"name":"tasks-handler","path":"appengine-java11/tasks-handler","contentType":"directory"},{"name":"tasks","path":"appengine-java11/tasks","contentType":"directory"},{"name":"vertx-helloworld","path":"appengine-java11/vertx-helloworld","contentType":"directory"},{"name":"README.md","path":"appengine-java11/README.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGoogle App Engine Standard Environment Samples for Java 11\u003c/h1\u003e\u003ca id=\"user-content-google-app-engine-standard-environment-samples-for-java-11\" class=\"anchor\" aria-label=\"Permalink: Google App Engine Standard Environment Samples for Java 11\" href=\"#google-app-engine-standard-environment-samples-for-java-11\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003ca href=\"https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/java-docs-samples\u0026amp;page=editor\u0026amp;open_in_editor=appengine-java11/README.md\" rel=\"nofollow\"\u003e\n\u003cimg alt=\"Open in Cloud Shell\" src=\"https://camo.githubusercontent.com/cf29981159f3fb8f7d5c5ce0a4a4ab3d2a8e500b782d2016717c3e4aa6124bc5/687474703a2f2f677374617469632e636f6d2f636c6f75647373682f696d616765732f6f70656e2d62746e2e706e67\" data-canonical-src=\"http://gstatic.com/cloudssh/images/open-btn.png\" style=\"max-width: 100%;\"\u003e\u003c/a\u003e\n\u003cp dir=\"auto\"\u003eThis is a repository that contains Java code samples for \u003ca href=\"https://cloud.google.com/appengine/docs/standard/java11/\" rel=\"nofollow\"\u003eGoogle App Engine\u003c/a\u003e\nstandard Java 11 environment.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePrerequisites\u003c/h2\u003e\u003ca id=\"user-content-prerequisites\" class=\"anchor\" aria-label=\"Permalink: Prerequisites\" href=\"#prerequisites\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDownload Maven\u003c/h3\u003e\u003ca id=\"user-content-download-maven\" class=\"anchor\" aria-label=\"Permalink: Download Maven\" href=\"#download-maven\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese samples use the \u003ca href=\"https://maven.apache.org\" rel=\"nofollow\"\u003eApache Maven\u003c/a\u003e build system. Before getting\nstarted, be sure to \u003ca href=\"https://maven.apache.org/download.cgi\" rel=\"nofollow\"\u003edownload\u003c/a\u003e and \u003ca href=\"https://maven.apache.org/install.html\" rel=\"nofollow\"\u003einstall\u003c/a\u003e it.\nWhen you use Maven as described here, it will automatically download the needed\nclient libraries.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCreate a Project in the Google Cloud Platform Console\u003c/h3\u003e\u003ca id=\"user-content-create-a-project-in-the-google-cloud-platform-console\" class=\"anchor\" aria-label=\"Permalink: Create a Project in the Google Cloud Platform Console\" href=\"#create-a-project-in-the-google-cloud-platform-console\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you haven't already created a project, create one now. Projects enable you to\nmanage all Google Cloud Platform resources for your app, including deployment,\naccess control, billing, and services.\u003c/p\u003e\n\u003col dir=\"auto\"\u003e\n\u003cli\u003eOpen the \u003ca href=\"https://console.cloud.google.com/\" rel=\"nofollow\"\u003eCloud Platform Console\u003c/a\u003e.\u003c/li\u003e\n\u003cli\u003eIn the drop-down menu at the top, select \u003cstrong\u003eCreate a project\u003c/strong\u003e.\u003c/li\u003e\n\u003cli\u003eGive your project a name.\u003c/li\u003e\n\u003cli\u003eMake a note of the project ID, which might be different from the project\nname. The project ID is used in commands and in configurations.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGoogle Cloud Shell, Open JDK 11 setup:\u003c/h3\u003e\u003ca id=\"user-content-google-cloud-shell-open-jdk-11-setup\" class=\"anchor\" aria-label=\"Permalink: Google Cloud Shell, Open JDK 11 setup:\" href=\"#google-cloud-shell-open-jdk-11-setup\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo switch to an Open JDK 11 in a Cloud shell session, you can use:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\" sudo update-alternatives --config java\n # And select the usr/lib/jvm/java-11-openjdk-amd64/bin/java version.\n # Also, set the JAVA_HOME variable for Maven to pick the correct JDK:\n export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e sudo update-alternatives --config java\n # And select the usr/lib/jvm/java-11-openjdk-amd64/bin/java version.\n # Also, set the JAVA_HOME variable for Maven to pick the correct JDK:\n export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eJava 11 runtime\u003c/h2\u003e\u003ca id=\"user-content-java-11-runtime\" class=\"anchor\" aria-label=\"Permalink: Java 11 runtime\" href=\"#java-11-runtime\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe simplest way to deploy to App Engine Java 11 is using an executable \u003ca href=\"https://stackoverflow.com/questions/11947037/what-is-an-uber-jar\" rel=\"nofollow\"\u003eUber JAR\u003c/a\u003e. App Engine will automatically configure the \u003ccode\u003eentrypoint\u003c/code\u003e to run the JAR file.\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"/michalbrzezinskiorg/java-docs-samples/blob/master/appengine-java11/springboot-helloworld\"\u003e\u003ccode\u003espringboot-helloworld\u003c/code\u003e\u003c/a\u003e: Build a fat JAR with Spring Boot\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/michalbrzezinskiorg/java-docs-samples/blob/master/appengine-java11/http-server\"\u003e\u003ccode\u003ehttp-server\u003c/code\u003e\u003c/a\u003e: Build a JAR using the Maven JAR Plugin\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eIn addition, App Engine allows you to execute the \u003ccode\u003ejava\u003c/code\u003e command directly in the \u003ccode\u003eapp.yaml\u003c/code\u003e \u003ccode\u003eentrypoint\u003c/code\u003e field, so you can further customize your app's startup.\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"/michalbrzezinskiorg/java-docs-samples/blob/master/appengine-java11/custom-entrypoint\"\u003e\u003ccode\u003ecustom-entrypoint\u003c/code\u003e\u003c/a\u003e: Run a simple server\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"/michalbrzezinskiorg/java-docs-samples/blob/master/appengine-java11/helloworld-servlet\"\u003e\u003ccode\u003ehelloworld-servlet\u003c/code\u003e\u003c/a\u003e: Run a WAR package servlet\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eWith a custom \u003ccode\u003eentrypoint\u003c/code\u003e, you can also construct and package your application as a thin JAR (or an exploded JAR). When you deploy your application, the App Engine plugin will only upload the files that changed, rather than the entire \u003ca href=\"https://stackoverflow.com/questions/11947037/what-is-an-uber-jar\" rel=\"nofollow\"\u003eUber JAR\u003c/a\u003e package.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eFor more information on the Java 11 runtime, see\n\u003ca href=\"https://cloud.google.com/appengine/docs/standard/java11/building-app/\" rel=\"nofollow\"\u003eBuilding an App\u003c/a\u003e\nand \u003ca href=\"https://cloud.google.com/appengine/docs/standard/java11/java-differences\" rel=\"nofollow\"\u003eMigrating your App Engine app from Java 8 to Java 11\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eServlet Runtime\u003c/h3\u003e\u003ca id=\"user-content-servlet-runtime\" class=\"anchor\" aria-label=\"Permalink: Servlet Runtime\" href=\"#servlet-runtime\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo migrate to the Java 11 runtime, your application must have a\n\u003ccode\u003eMain\u003c/code\u003e class that starts a web server.\n\u003ca href=\"/michalbrzezinskiorg/java-docs-samples/blob/master/appengine-java11/appengine-simple-jetty-main\"\u003e\u003ccode\u003eappengine-simple-jetty-main\u003c/code\u003e\u003c/a\u003e is a shared artifact\nthat provides a Jetty Web Server for the servlet based runtime. Packaged as a\njar, the Main Class will load a war file, passed as an argument, as the\ncontext root of the web application listening to port 8080.\nSome samples create a \u003ccode\u003e\u0026lt;sample-name\u0026gt;.war\u003c/code\u003e which is used as an argument in the\nApp Engine \u003ccode\u003eapp.yaml\u003c/code\u003e entrypoint field.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eApp Engine Staging Directory\u003c/h3\u003e\u003ca id=\"user-content-app-engine-staging-directory\" class=\"anchor\" aria-label=\"Permalink: App Engine Staging Directory\" href=\"#app-engine-staging-directory\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThe App Engine Plugin will stage all the files to upload into App Engine\nruntime in \u003ccode\u003e${build.directory}/appengine-staging\u003c/code\u003e. When deploying an\n\u003ca href=\"https://stackoverflow.com/questions/11947037/what-is-an-uber-jar\" rel=\"nofollow\"\u003eUber JAR\u003c/a\u003e, the JAR is automatically copied into this staging\ndirectory and uploaded. It's possible to copy other files into this staging\ndirectory (such as additional JVM Agents) and having them available in the\ndeployed App Engine runtime directory.\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003eTo stage the files to be uploaded:\u003c/li\u003e\n\u003c/ul\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"mvn appengine:stage\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003emvn appengine:stage\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Google App Engine Standard Environment Samples for Java 11","anchor":"google-app-engine-standard-environment-samples-for-java-11","htmlText":"Google App Engine Standard Environment Samples for Java 11"},{"level":2,"text":"Prerequisites","anchor":"prerequisites","htmlText":"Prerequisites"},{"level":3,"text":"Download Maven","anchor":"download-maven","htmlText":"Download Maven"},{"level":3,"text":"Create a Project in the Google Cloud Platform Console","anchor":"create-a-project-in-the-google-cloud-platform-console","htmlText":"Create a Project in the Google Cloud Platform Console"},{"level":3,"text":"Google Cloud Shell, Open JDK 11 setup:","anchor":"google-cloud-shell-open-jdk-11-setup","htmlText":"Google Cloud Shell, Open JDK 11 setup:"},{"level":2,"text":"Java 11 runtime","anchor":"java-11-runtime","htmlText":"Java 11 runtime"},{"level":3,"text":"Servlet Runtime","anchor":"servlet-runtime","htmlText":"Servlet Runtime"},{"level":3,"text":"App Engine Staging Directory","anchor":"app-engine-staging-directory","htmlText":"App Engine Staging Directory"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fmichalbrzezinskiorg%2Fjava-docs-samples%2Ftree%2Fmaster%2Fappengine-java11"}},"totalCount":18,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".kokoro","path":".kokoro","contentType":"directory"},{"name":"appengine-java11","path":"appengine-java11","contentType":"directory"},{"name":"appengine-java8","path":"appengine-java8","contentType":"directory"},{"name":"asset","path":"asset","contentType":"directory"},{"name":"auth","path":"auth","contentType":"directory"},{"name":"automl","path":"automl","contentType":"directory"},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"bigtable","path":"bigtable","contentType":"directory"},{"name":"cdn","path":"cdn","contentType":"directory"},{"name":"cloud-sql","path":"cloud-sql","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"container-registry","path":"container-registry","contentType":"directory"},{"name":"datacatalog","path":"datacatalog","contentType":"directory"},{"name":"dataflow","path":"dataflow","contentType":"directory"},{"name":"datalabeling","path":"datalabeling","contentType":"directory"},{"name":"dataproc","path":"dataproc","contentType":"directory"},{"name":"datastore","path":"datastore","contentType":"directory"},{"name":"dialogflow","path":"dialogflow","contentType":"directory"},{"name":"dlp","path":"dlp","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"errorreporting","path":"errorreporting","contentType":"directory"},{"name":"firestore","path":"firestore","contentType":"directory"},{"name":"flexible","path":"flexible","contentType":"directory"},{"name":"functions","path":"functions","contentType":"directory"},{"name":"healthcare","path":"healthcare","contentType":"directory"},{"name":"iam","path":"iam","contentType":"directory"},{"name":"iap","path":"iap","contentType":"directory"},{"name":"iot","path":"iot","contentType":"directory"},{"name":"jobs","path":"jobs","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"logging","path":"logging","contentType":"directory"},{"name":"memorystore","path":"memorystore","contentType":"directory"},{"name":"mlengine","path":"mlengine","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"opencensus","path":"opencensus","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"recommender","path":"recommender","contentType":"directory"},{"name":"run","path":"run","contentType":"directory"},{"name":"secretmanager","path":"secretmanager","contentType":"directory"},{"name":"securitycenter","path":"securitycenter","contentType":"directory"},{"name":"session-handling","path":"session-handling","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"tasks","path":"tasks","contentType":"directory"},{"name":"texttospeech","path":"texttospeech","contentType":"directory"},{"name":"trace","path":"trace","contentType":"directory"},{"name":"translate","path":"translate","contentType":"directory"},{"name":"unittests","path":"unittests","contentType":"directory"},{"name":"video","path":"video","contentType":"directory"},{"name":"vision","path":"vision","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SAMPLE_FORMAT.md","path":"SAMPLE_FORMAT.md","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"renovate.json","path":"renovate.json","contentType":"file"}],"totalCount":60}},"fileTreeProcessingTime":9.832759999999999,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/michalbrzezinskiorg/java-docs-samples/branches":{"post":"iD2stxnpfvibh1oCu2Hx8DK-iX6lorrmt07Q-zeUQOwEDTuyVbDFq2hb2pqjXQZC3T24VIunKxK6wmyUAKGbIA"},"/michalbrzezinskiorg/java-docs-samples/branches/fetch_and_merge/master":{"post":"SKZoO7aJCydZx93OHt3y6FuFdXLTr1RW0bw_vFYnTv4BopLrsO8RKK1PXbWjUMHPQ2jjcEZoebK1NLlLu9MAmQ"},"/michalbrzezinskiorg/java-docs-samples/branches/fetch_and_merge/master?discard_changes=true":{"post":"EQgCzAI5rGK5VNAykLeZdSGyI8BpwQO7qCe94S3fI3tYDPgcBF-2bU3cUEktOqpSOV-1wvwGLl_MrzsWwCttHA"}}},"title":"java-docs-samples/appengine-java11 at master · michalbrzezinskiorg/java-docs-samples","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0