Hyperledger Fabric FABRIC-JAVA-SDK test Environment integration

Source: Internet
Author: User
Tags git clone hyperledger fabric

Copyright Notice: Blog Article copyright owners all, without authorization, prohibit reprint, reprint please specify the source installation Environment installation JDK

Download URL: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Download jdk-8u151-macosx-x64.dmg install to PC install maven

Download URL: https://maven.apache.org/download.cgi

Extract to/users/fujinliang/documents/environment

Open terminal , modify. BASHRC

VI ~/.BASHRC

Add the following code

Export m2_home=/users/fujinliang/documents/environment/apache-maven-3.5.2
export path= $PATH: $M 2_home/bin

Enter a command to make the configuration effective

SOURCE ~/.BASHRC

Enter MVN-V to see if MAVEN was installed successfully

$ mvn-v
Apache maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d 2017-10-18t15:58:13+08:00)
maven Home: /users/fujinliang/documents/environment/apache-maven-3.5.2
Java version:1.8.0_151, vendor:oracle Corporation
Java Home:/library/java/javavirtualmachines/jdk1.8.0_151.jdk/contents/home/jre
Default LOCALE:ZH_CN, platform encoding:utf-8
OS name: "Mac OS X", Version: "10.13.2", Arch: "X86_64", Family: "Mac"
Download Fabric-java-sdk
$ git clone https://github.com/hyperledger/fabric-sdk-java.git

$ cd Fabric-sdk-java
$ git checkout v1.0.1
compiling
$ MVN install-dskiptests
Start Network
$ cd src/test/fixture/sdkintegration
$/fabric.sh up
Running test Methods
MVN Failsafe:integration-test-dskipits=false

Pay attention to the public number

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.