我正在处理使用Google云端数据流的Java应用,并且在尝试使用gradle进行编译时遇到错误。
build.gradle中的依赖关系部分是:
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:谷歌云计算的数据流,Java的原库全:0.3.150206。 要求: :telstra-targetingserver-cdf-cptmappings:0.0.1> com.google.cloud.dataflow:谷歌云数据流的Java-SDK全: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。 在以下位置搜索: 文件:/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”此时的内容是:
答案 0 :(得分:3)
这是一个已知问题,将通过下一个星期一(3/23)计划在下一个星期一(3/23)的Maven推出云数据流来解决。