的值-Dapp.deploy.deployables
应以逗号分隔。但是,在使用此标志时app.yaml
需要指向暂存位置mvn appengine:stage
,因此如果您想将其与其他配置文件一起部署,您可能需要预先暂存您的应用程序。
$ mvn appengine:stage
$ mvn appengine:deploy -Dapp.deploy.deployables=src/main/appengine/queue.yaml,target/appengine-staging/app.yaml
在最后一个命令的输出中,您会看到类似
INFO: submitting command: <...>/bin/gcloud app deploy <...>/src/main/appengine/queue.yaml <...>/target/appengine-staging/app.yaml
[INFO] GCLOUD: Services to deploy:
[INFO] GCLOUD:
[INFO] GCLOUD: descriptor: [<...>/target/appengine-staging/app.yaml]
[INFO] GCLOUD: source: [<...>/target/appengine-staging]
[INFO] GCLOUD: target project: [<...>]
[INFO] GCLOUD: target service: [default]
[INFO] GCLOUD: target version: [20170807t115019]
[INFO] GCLOUD: target url: [https://<...>]
[INFO] GCLOUD:
[INFO] GCLOUD:
[INFO] GCLOUD: Configurations to update:
[INFO] GCLOUD:
[INFO] GCLOUD: descriptor: [<...>/src/main/appengine/queue.yaml]
[INFO] GCLOUD: type: [task queues]
[INFO] GCLOUD: target project: [<...>]
[INFO] GCLOUD:
[INFO] GCLOUD:
[INFO] GCLOUD: If this is your first deployment, this may take a while...
[INFO] GCLOUD: ....done.
[INFO] GCLOUD:
[INFO] GCLOUD: Beginning deployment of service [default]...
[INFO] GCLOUD: Building and pushing image for service [default]