我有一个 SpringBoot Application ant 它部署在 Google App Engine 上,我之前使用 google cloud maven 插件部署了很多次(158),但是今天我的核心和部署规则没有任何变化,我收到了下一条错误消息:
INFO: submitting command: /root/.cache/google-cloud-tools-java/managed-cloud-sdk/LATEST/google-cloud-sdk/bin/gcloud app deploy --promote --version 1 --project <my-project-name> --credential-file-override /app/keys/<my-key>.json
GCLOUD: ERROR: (gcloud.app.deploy) Failed to parse YAML from [gs://runtime-builder/experiments.yaml]: mapping values are not allowed here
GCLOUD: in "<file>", line 2, column 14
在我的项目中,我没有 yml 配置,因为它是 java 我只有 appengine-web.xml 配置。
对此有任何想法吗?
提前致谢
更新:我正在使用 appengine-maven-plugin,我有下一个配置:
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.2.0</version>
<configuration>
<version>${app.target.version}</version>
<promote>${app.promote.version}</promote>
<projectId>${gae.app.name}</projectId>
<serviceAccountKeyFile>${gae.key.location}</serviceAccountKeyFile>
</configuration>
</plugin>
[解决] 1.降级插件版本 2.设置旧的gCloud SDK
最终配置:
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>2.0.0-rc5</version> <!-- Downgraded -->
<configuration>
<version>${app.target.version}</version>
<promote>${app.promote.version}</promote>
<projectId>${gae.app.name}</projectId>
<serviceAccountKeyFile>${gae.key.location}</serviceAccountKeyFile>
<cloudSdkVersion>271.0.0</cloudSdkVersion> <!-- Set older sdk version -->
</configuration>
</plugin>