You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead using mvn dependency:get we use wget from
hyperledger nexus and mvn install:install-file
Change-Id: Ia47cca2c6aa22f28777ed410a5fbce07511d2e73
Signed-off-by: gennady <[email protected]>
Copy file name to clipboardExpand all lines: fabric-chaincode-docker/Dockerfile
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -51,10 +51,16 @@ RUN mvn compile package
51
51
WORKDIR /root/chaincode-java
52
52
53
53
# Adding shim 1.3.0 jar
54
-
RUN source /root/.sdkman/bin/sdkman-init.sh; mvn dependency:get -DgroupId=org.hyperledger.fabric-chaincode-java -DartifactId=fabric-chaincode-shim -Dversion=1.3.0 -DremoteRepositoriescentral::default::https://nexus.hyperledger.org/content/repositories/releases
54
+
WORKDIR /tmp
55
+
RUN wget https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.0/fabric-chaincode-shim-1.3.0.pom
56
+
RUN wget https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-chaincode-java/fabric-chaincode-shim/1.3.0/fabric-chaincode-shim-1.3.0.jar
57
+
RUN wget https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-chaincode-java/fabric-chaincode-protos/1.3.0/fabric-chaincode-protos-1.3.0.pom
58
+
RUN wget https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric-chaincode-java/fabric-chaincode-protos/1.3.0/fabric-chaincode-protos-1.3.0.jar
59
+
RUN mvn install::install-file -Dfile=fabric-chaincode-protos-1.3.0.jar -DpomFile=fabric-chaincode-protos-1.3.0.pom
60
+
RUN mvn install::install-file -Dfile=fabric-chaincode-shim-1.3.0.jar -DpomFile=fabric-chaincode-shim-1.3.0.pom
0 commit comments