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