Hyperledger Fabric Could not resolve all dependencies for configuration

0 votes

I tried to compile the Java chain code.

I get a below error . Please let me know how to fix the issue.

Could not resolve all dependencies for configuration ':examples:chaincode:java:Example:compileClasspath'.

Could not find org.hyperledger:shim-client:1.0.
  Searched in the following locations:
      file:/C:/Users/INTL/.m2/repository/org/hyperledger/shim-client/1.0/shim-client-1.0.pom
      file:/C:/Users/INTL/.m2/repository/org/hyperledger/shim-client/1.0/shim-client-1.0.jar
      https://repo1.maven.org/maven2/org/hyperledger/shim-client/1.0/shim-client-1.0.pom
      https://repo1.maven.org/maven2/org/hyperledger/shim-client/1.0/shim-client-1.0.jar
  Required by:
      fabric.examples.chaincode.java:Example:unspecified***

Nov 2, 2018 in Blockchain by slayer
• 29,350 points
1,325 views

1 answer to this question.

0 votes

First, build the chaincode using gradle build. You should do this from the following folder:

github.com/hyperledger/fabric/core/chaincode/shim/java

Now, from the Example java code folder build it again by gradle -b build.gradle build

This should work

answered Nov 2, 2018 by Omkar
• 69,210 points

Related Questions In Blockchain

0 votes
1 answer

Not Able to register a user with Hyperledger-Fabric v1.1 preview

The error: "Certificate not found with AKI 'e729224e8b3f31784c8a93c5b8ef6f4c1c91d9e6e577c45c33163609fe40011' ...READ MORE

answered Jun 16, 2018 in Blockchain by charlie_brown
• 7,720 points
1,648 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,232 views
0 votes
1 answer

Hyperledger Fabric: ERROR: manifest for hyperledger/fabric-ca:latest not found.

docker pull hyperledger/fabric-ca:x86_64-1.1.0-preview Now tag this the latest ...READ MORE

answered Nov 13, 2018 in Blockchain by Omkar
• 69,210 points
1,376 views
+2 votes
3 answers

Hyperledger Fabric: Peer Connection error: Failed obtaining connection: Could not connect to any of the endpoints.

 You can extend your /etc/hosts file and make orderer.example.com domain name ...READ MORE

answered Nov 13, 2018 in Blockchain by Omkar
• 69,210 points
3,505 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP