Hyperlegder Shim-client-1.0 Jar在complilation中丢失

时间:2017-07-16 14:34:04

标签: maven hyperledger hyperledger-fabric

我尝试使用Hyperlegder Java SDK但无法找到Shim-client jar。见下面的错误。

Information:java: Errors occurred while compiling module 'maven'
Information:javac 1.8.0_74 was used to compile java sources
Information:Module "maven" was fully rebuilt due to project configuration/dependencies changes
Information:16/07/2017, 3:08 PM - Compilation completed with 34 errors and 0 warnings in 14s 362ms 
    /Java/src/main/java/ZoneSDKInterface.java
    Error:(11, 35) java: package org.hyperledger.fabric.shim does not exist
    Error:(12, 35) java: package org.hyperledger.fabric.shim does not exist

我在网上看到的所有资源都要求我从遗失的Git repo下载源代码 - https://github.com/hyperledger/fabric/core/chaincode/shim/java

修改:源网址为https://github.com/hyperledger/fabric/tree/release/core/chaincode/shim/java

能够下载repo和gradle构建以获取JAR文件。

1 个答案:

答案 0 :(得分:-2)

使用波纹管依赖

<dependency>
  <groupId>me.reactiv.fabric-java-sdk</groupId>
  <artifactId>fabric-java-sdk</artifactId>
  <version>0.6.6</version>
</dependency>