Previous Project Target Details Fetched While Deploying Google App Engine App from within Eclipse

31 views
Skip to first unread message

Shivang

unread,
Dec 23, 2018, 2:13:59 AM12/23/18
to Google App Engine
I have 2 separate app engine apps. One is the client & the other is the backend application. 

When I deploy any of the application from within the Eclipse, running the maven build with parameter "appengine:deploy"

During deployment, the target project settings don't change. The old target settings of the previous deployment, be it of another project, persists. 

I'll explain... Say I am deploying the backend app,  eclipse google cloud plugin will take the client target details:

Like so... 

[INFO] GCLOUD: target project:  [x-client]
[INFO] GCLOUD: target service:  [default]
[INFO] GCLOUD: target version:  [***********]
[INFO] GCLOUD: target url:      [https://client.appspot.com]

To fix this I manually ran the "gcloud config set project <projectID>" in the Google cloud SDK console to update the project to backend. 

Now when I deploy the client app it fetches the backend target details for the deployment. 

Do I have to manually run the set project command every time in the console before deploying?


P.S In the project properties, the Google cloud deployment setting, I have selected separate projects for deployment. But eclipse google cloud plugin doesn't seem to read that setting. 




Blaine Garrett

unread,
Dec 24, 2018, 2:39:08 PM12/24/18
to Google App Engine
To clarify, you have 2 different projects or 2 different services with the same project?

If the former, you will likely need to add the project id to the directive. I've gotten burned depending on default project id and explitly set it now in my make commmand declarations. I'm not using eclipse/maven. Hope that helps.

George (Cloud Platform Support)

unread,
Dec 25, 2018, 7:12:12 PM12/25/18
to Google App Engine
You need to choose your project ID first, as indicated on the "Deploying App Engine Standard Applications from Eclipse" page

You seem to indicate that you still use Cloud Plugin for Eclipse. The Google Plugin for Eclipse (GPE) is obsolete and, in fact, no longer available. You should migrate to Cloud Tools for Eclipse, as detailed in the "Migrating from the Google Plugin for Eclipse" online document
Reply all
Reply to author
Forward
0 new messages