I'm trying to execute a Maven goal which takes a parameter with multiple values (list of values). How can I do that?
In gcloud
this can be done with gcloud app deploy --quiet --project $(PROJECT) -v $(VERSION) app.yaml backend.yaml cron.yaml index.yaml queue.yaml
But we are using Maven.
We tried
mvn appengine:deploy -Dapp.deploy.deployables=app.yaml cron.yml queue.yaml
But this is not working. In fact, five commands are needed just to deploy.
mvn appengine:deploy
mvn appengine:deployCron
mvn appengine:deployDispatch
mvn appengine:deployIndex
mvn appengine:deployQueue
How can this be done in one command in Maven?
The values for
-Dapp.deploy.deployables
should be comma-separated. However,app.yaml
needs to point to a staged location when using this flag, so you may need to stage your app beforehand withmvn appengine:stage
if you want to deploy it with other configuration files.In the output of the last command, you'll see something like