O Cloud Tools for Eclipse oferece um assistente dentro do Eclipse para criar novos aplicativos Java para o ambiente padrão do App Engine.
Antes de começar
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Cloud Build API.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Enable the Cloud Build API.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
Crie um aplicativo do App Engine para seu projeto do Google Cloud no Console do Google Cloud.
Selecione a região em que você quer que os recursos de computação do aplicativo estejam localizados.
- Confirme se você tem a versão mais recente do plug-in do Cloud Tools for Eclipse.
Como criar um novo projeto Java no ambiente padrão do App Engine
Para criar um novo projeto para o ambiente padrão do App Engine no Eclipse:
Click the Google Cloud Platform toolbar button .
Select Create New Project > Google App Engine Standard Java Project.
Enter a Project name and (optionally) a Java package.
To create a Maven-based App Engine project, select Create as Maven Project and enter a Maven Group ID and Artifact ID of your choosing to set the coordinates for this project. The Group ID is often the same as the package name, but does not have to be. The Artifact ID is often the same as or similar to the project name, but does not have to be.
Click Next.
Select any libraries you need in the project.
Click Finish.
The wizard generates a native Eclipse project, with a simple servlet, that you can run and deploy from the IDE.
A seguir
- Depois de criar um aplicativo, execute-o e depure-o na estação de trabalho local.