Deploying an App Engine application using an archive file
Stay organized with collections
Save and categorize content based on your preferences.
This page describes how to deploy your project to the App Engine
flexible environment using a WAR archive or a runnable JAR file.
Before You Begin
You need a Google Cloud project with an App Engine application to
deploy to. If you don't already have one, use the Google Cloud console to set up
your Google Cloud project:
Sign in to a Google account that is used to deploy your project
to App Engine.
Run the following command
gcloud auth application-default login
Your system browser opens outside of the CLI and asks for the permissions
it needs to manage your App Engine applications:
Click Allow and close the window. Eclipse is now signed into your
account.
Deploy a JAR or WAR file
To deploy a pre-existing WAR or runnable JAR file to the flexible environment:
Prepare an app.yaml file. At a minimum, it should contain the following
lines:
runtime:javaenv:flex
Click the Google Cloud toolbar button .
Select Deploy WAR/JAR File to App Engine Flexible... in the drop-down
menu.
Select the Account you want to deploy with, or sign in with a different
account.
In the Project list box, select the Google Cloud project you want to
deploy to.
In the WAR/JAR field, click Browse to select the archive file.
In the app.yaml field, click Browse to select your app.yaml file.
If you want to keep the current version running and manually promote the new
version later using gcloud or the Google Cloud console, clear the
Promote the deployed version to receive all traffic checkbox.
If you don't want to stop the previous version, clear the Stop previous
version checkbox.
Click Deploy.
After a successful deployment, Eclipse opens an internal browser connecting
to the deployed app.
What's next
Explore the plugin code or report issues on
GitHub,
or ask a question on
Stack Overflow.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["Cloud Tools for Eclipse is only compatible with the App Engine Java 8 runtime, which will reach its end of support on January 31, 2024, and users should migrate to the latest supported version of Java."],["This page guides users on how to deploy a pre-existing WAR archive or runnable JAR file, which must have a main method, to the App Engine flexible environment."],["To deploy, you'll need a Google Cloud project with an App Engine application and must sign in to a Google account that is used to deploy to App Engine using the `gcloud auth application-default login` command."],["Deployment requires an `app.yaml` file with `runtime: java` and `env: flex` to be present, and once completed, the deployed app can be viewed via an internal browser in Eclipse."],["Users can choose whether to promote the new version to receive traffic or stop the previous version during the deployment process."]]],[]]