【发布时间】:2020-09-23 07:22:25
【问题描述】:
对于 Google 端点文档,我需要提供 <hostname>${endpoints.project.id}.appspot.com</hostname>,但我希望它来自 GCLOUD_CONFIG。这怎么可能?
插件配置
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>endpoints-framework-maven-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<hostname>${endpoints.project.id}.appspot.com</hostname>
<serviceClasses>
com.example.pratyum.guice.AllEndpoint
</serviceClasses>
</configuration>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>discoveryDocs</goal>
<goal>openApiDocs</goal>
</goals>
</execution>
</executions>
</plugin>
【问题讨论】:
标签: maven google-app-engine gcloud