我找不到类ProjectSubscriptionName / MessageReceiver和eclipse报告ProjectSubscriptionName / MessageReceiver类无法通过在pom.xml文件中定义导致构建路径的相关google-cloud-pubsub jar难以解决错误。
pom.xml:
<dependency>
<groupId>com.google.cloud.dataflow</groupId>
<artifactId>google-cloud-dataflow-java-sdk-all</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pubsub</artifactId>
<version>0.8.0</version>
</dependency>
Need help here to find the correct jar for missing classes. Appreciate your help. Jar should be stable one not alpha/beta version.
答案 0 :(得分:1)
ProjectSubscriptionName
和MessageReceiver
仅在客户端库的更高版本中定义,这些版本处于测试阶段,直到版本1.31.0发布。较新的客户端库旨在使其更容易处理高吞吐量和低延迟。 MessageReceiver
界面首次出现在0.9.0-alpha版本中。 ProjectSubscriptionName
类首次出现在0.36.0-beta。
答案 1 :(得分:1)
Hi Kamal,
Google released pubsub 1.31.0 version yesterday and pom entry below:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pubsub</artifactId>
<version>1.31.0</version>
</dependency>
Link:
https://mvnrepository.com/artifact/com.google.cloud/google-cloud-pubsub/1.31.0