Corda Enterprise 4.0缺少咖啡因依赖性

时间:2019-07-15 19:27:22

标签: corda caffeine

首次尝试在Corda Enterprise 4.1上编译我的项目时,出现了缺少依赖项的堆栈跟踪。

如何包含正确的咖啡因依赖性?

Could not resolve all files for configuration ':corda-domain:compileClasspath'.
  > Could not find com.github.ben-manes.caffeine:caffeine:2.7.0-r3-fifty.
    Searched in the following locations:
        file:/C:/Users/syhashmi/.m2/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        file:/C:/Users/syhashmi/.m2/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        https://repo.maven.apache.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        https://repo.maven.apache.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        https://jcenter.bintray.com/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        https://jcenter.bintray.com/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        https://jitpack.io/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        https://jitpack.io/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        https://repo.spring.io/libs-snapshot/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        https://repo.spring.io/libs-snapshot/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        https://build.shibboleth.net/nexus/content/repositories/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        https://build.shibboleth.net/nexus/content/repositories/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        http://repository.mulesoft.org/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        http://repository.mulesoft.org/releases/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
        file:/C:/code-azure/lcacordapp/lib/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.pom
        file:/C:/code-azure/lcacordapp/lib/repository/com/github/ben-manes/caffeine/caffeine/2.7.0-r3-fifty/caffeine-2.7.0-r3-fifty.jar
    Required by:
        project :corda-domain > com.r3.corda:corda-core:4.1```

1 个答案:

答案 0 :(得分:0)

从Corda Enterprise 4.0开始,需要编译一个补丁版本的Caffeine。

有关如何添加此依赖项的文档可以在这里找到:https://docs.corda.r3.com/clientrpc.html#connecting-to-a-node-via-rpc