无法文件:Gradle构建期间的Corda崩溃Shell

时间:2017-11-21 23:38:54

标签: corda

我们正在使用artifactory通过防火墙连接到互联网。运行 ./ gradlew clean build 时,会收到以下异常消息:

Could not resolve all dependencies for configuration ':java-source:testCompileClasspath'.
> Could not find com.github.corda.crash:crash.shell:9d242da2a10e686f33a3aefc69e4768824ad0716.
  Searched in the following locations:
      http://code-artifacts.bankofamerica.com:18081/artifactory/virtual-java/com/github/corda/crash/crash.shell/9d242da2a10e686f33a3aefc69e4768824ad0716/crash.shell-9d242da2a10e686f33a3aefc69e4768824ad0716.pom
      http://code-artifacts.bankofamerica.com:18081/artifactory/virtual-java/com/github/corda/crash/crash.shell/9d242da2a10e686f33a3aefc69e4768824ad0716/crash.shell-9d242da2a10e686f33a3aefc69e4768824ad0716.jar
  Required by:
      project :java-source > net.corda:corda-node-driver:1.0.0 > net.corda:corda-test-utils:1.0.0 > net.corda:corda-node:1.0.0

我们想知道crash.shell的版本号是否对jar查找有影响。

2 个答案:

答案 0 :(得分:0)

在Corda V1.0中,net.corda:corda-node:1.0.0列出com.github.corda.crash:crash.shell:9d242da2a10e686f33a3aefc69e4768824ad0716作为编译依赖项。这相当于https://github.com/corda/crash/tree/9d242da2a10e686f33a3aefc69e4768824ad0716/shell

如果您位于防火墙后面并且此依赖关系不存在于您的工件中,则构建将失败。

答案 1 :(得分:0)

现在它已存在于R3 corda-dependencies存储库中,因此您只需要更新build.gradle

  repositories {
    jcenter()
    maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-releases' }
    maven { url 'https://ci-artifactory.corda.r3cev.com/artifactory/corda-dependencies' }
  }