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,040 points
91 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 65,850 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,710 points
292 views
0 votes
1 answer
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
• 65,850 points
43 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
• 65,850 points
430 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.