2

我正在开发一个使用 Google Cloud Data 流的 Java 应用程序,并且在尝试使用 gradle 进行编译时遇到错误。

build.gradle 中的 Dependencies 部分是:

dependencies {
compile 'commons-codec:commons-codec:1.9'
compile 'com.google.cloud.dataflow:google-cloud-dataflow-java-sdk-all:0.3.150227'
compile 'com.google.inject.extensions:guice-multibindings:3.0'
compile 'com.google.inject:guice:3.0'

}

我得到的错误是:

无法解析 com.google.cloud.dataflow:google-cloud-dataflow-java-proto-library-all:0.3.150206。要求::telstra-targetingserver-cdf-cptmappings:0.0.1 > com.google.cloud.dataflow:google-cloud-dataflow-java-sdk-all:0.3.150227

无法解析 POM https://repo1.maven.org/maven2/com/google/cloud/dataflow/google-cloud-dataflow-java-proto-library-all/0.3.150206/google-cloud-dataflow-java- proto-library-all-0.3.150206.pom 找不到 com.google.cloud.dataflow:google-cloud-dataflow-java-sdk-parent:LATEST。在以下位置搜索:file:/Users/pablocaif/.m2/repository/com/google/cloud/dataflow/google-cloud-dataflow-java-sdk-parent/LATEST/google-cloud-dataflow-java-sdk- parent-LATEST.pom 文件:/Users/pablocaif/.m2/repository/com/google/cloud/dataflow/google-cloud-dataflow-java-sdk-parent/LATEST/google-cloud-dataflow-java-sdk-parent -LATEST.jar https://repo1.maven.org/maven2/com/google/cloud/dataflow/google-cloud-dataflow-java-sdk-parent/LATEST/google-cloud-dataflow-java-sdk-parent-LATEST.pom https ://repo1.maven.org/maven2/com/google/cloud/dataflow/google-cloud-dataflow-java-sdk-parent/LATEST/google-cloud-dataflow-java-sdk-parent-LATEST.jar

https://repo1.maven.org/maven2/com/google/cloud/dataflow/google-cloud-dataflow-java-sdk-parent/中似乎缺少 LATEST

此时的内容是: 在此处输入图像描述

4

1 回答 1

3

这是一个已知问题,计划于下周一(3 月 23 日)推出的下一个 Maven 推送 Cloud Dataflow 将解决此问题。

于 2015-03-19T23:53:03.527 回答