hyperledger/fabric sdk-java compilation

    Fabric-sdk-java build and compile (this article is based on version 1.0.1)

1. Install jdk1.8 and above

2. Download fabric-sdk-java github address: https://github.com/hyperledger/fabric-sdk-java

3. Import into the eclipse tool

4. Switch to the command window mode in the project directory and execute: mvn compile -DskipTests,

After the compilation is successful, refresh the project.

The proto files in the project are generated in the target/generated-sources/protobuf/java directory and automatically added to the build path

If it appears:

git-commit-id-plugin Error about this component Delete the component from the pom.xml file, and then execute the compilation.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325731051&siteId=291194637