Skip to content

Commit 4a78b41

Browse files
committed
Java shim build update in DEV mode
Modify build instruction for Java shim to reflect publishing shim-client.jar to local Maven repo FIX FAB-439 https://jira.hyperledger.org/browse/FAB-439 Change-Id: I2a2e87cad0fb7bc386f107e75389ffceafe3977c Signed-off-by: Satheesh Kathamuthu <[email protected]>
1 parent 4173edd commit 4a78b41

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

docs/Setup/JAVAChaincode.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,20 @@ Note: This guide generally assumes you have followed the Chaincode development e
7474
make peer
7575
peer node start --peer-chaincodedev
7676
```
77-
3. Open the second Vagrant terminal, and change to Java shim root folder and run gradle build,
77+
3. Open the second Vagrant terminal and build the Java shim layer and publish it to Local Maven Repo
78+
```
79+
cd $GOPATH/src/github.com/hyperledger/fabric/core/chaincode/shim/java
80+
gradle -b build.gradle clean
81+
gradle -b build.gradle build
82+
```
83+
4. Change to examples folder to build and run,
7884
```
7985
cd $GOPATH/src/github.com/hyperledger/fabric/examples/chaincode/java/SimpleSample
8086
gradle -b build.gradle build
8187
```
82-
4. Run the SimpleSample chaincode using the `gradle -b build.gradle run`
83-
84-
5. Open the third Vagrant terminal to run init and invoke on the chaincode
88+
5. Run the SimpleSample chaincode using the `gradle -b build.gradle run`
8589
90+
6. Open the third Vagrant terminal to run init and invoke on the chaincode
8691
8792
peer chaincode deploy -l java -n SimpleSample -c '{"Args": ["init", "a","100", "b", "200"]}'
8893
```

0 commit comments

Comments
 (0)