1

我是 Google Cloud Endpoints 的新手。我正在生成 java 客户端库。我看到为客户端库生成的 maven 项目包含以下内容:

<groupId>com.appspot.foo</groupId>
<artifactId>bar</artifactId>
<version>v1-1.17.0-rc-SNAPSHOT</version>
<name>pub v1-1.17.0-rc-SNAPSHOT</name>

通过实验,我确定:

1) groupId 来自<application>appengine-web.xml 中的元素,前面带有“com.appspot”。这不正是我想要的。我希望客户端库的 groupId 与生成它的 Web 服务工件的 groupId 匹配。

2) artifactId 来自@Api 注解为我的服务指定的名称:

@Api(name="bar")

in my endpoint source code. However, if my web service's artifactId is my-web-service, I'd like the generated client library's artifact to be my-web-service-client. But I don't want my API name to be "my-web-service-client".

3) The version seems to come from the version of the api client library generator itself. This really isn't what I want -- the version of my client library artifact should match the version of the artifact that the endpoint client library was generated from. That is, if the version number of my web service's artifact is 1.2.3-SNAPSHOT, that's what the version of the client library generated from it should be.

是否有机制来覆盖它?如果我确实覆盖了这些值(手动或通过某些脚本),它会破坏假设它们具有最初生成的值的任何下游吗?

4

0 回答 0