Deploying multi-module appengine projects using a service account

All my previous app projects were a single module. I am deploying them using gcloud as it is the only tool that supports service account authentication (vs AppCfg and appengine maven plugin) as far as I know, which is a must for me.

Now I am creating my first java multi-module project and based on this example: https://github.com/GoogleCloudPlatform/appengine-modules-sample-java

However, when I try to deploy the project, I get

Bad argument: The requested action does not support EAR configurations
AppCfg [options] stage <app-dir> <staging-dir>

      

From what I understand, gcloud uses AppCfg to generate yaml config files and doesn't support EAR config.

Is there a way to deploy this project using a tool that supports service accounts?

Thank!

+3


source to share


1 answer


You need to run mvn package

to create WAR folders of modules ( appengine-modules-guestbook/target/appengine-modules-guestbook-1-1.0

for example given the link you posted). Once you've built these WAR folders, deploy them individually with mvn gcloud:deploy

(read about this maven plugin from the link provided)



0


source







All Articles