File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -59,16 +59,13 @@ RUN rm -rf shim-src
5959# Gradle doesn't run without settings.gradle file, so create one
6060RUN touch settings.gradle
6161RUN gradle wrapper
62+ RUN mvn -N io.takari:maven:wrapper
6263
6364# Creating final javaenv image which will include all required
6465# dependencies to build and compile java chaincode
6566FROM adoptopenjdk/openjdk11:jdk-11.0.4_11-alpine
6667RUN apk add --no-cache bash
6768
68- COPY --from=dependencies /root/chaincode-java/gradle /root/chaincode-java/
69- COPY --from=dependencies /root/chaincode-java/gradlew /root/chaincode-java/gradlew
70- COPY --from=builder /root/.sdkman/candidates/maven/current /usr/bin/maven
71-
7269SHELL ["/bin/bash" , "-c" ]
7370ENV PATH="/usr/bin/maven/bin:/usr/bin/maven/:/usr/bin/gradle:/usr/bin/gradle/bin:${PATH}"
7471
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ buildMaven() {
3838 tar cf - . | (cd ${TMP_DIR} ; tar xf -)
3939 cd ${TMP_DIR}
4040 echo " Maven build"
41- mvn compile package -DskipTests -Dmaven.test.skip=true
41+
42+ ./mvnw compile package -DskipTests -Dmaven.test.skip=true
43+
4244 retval=$?
4345 if [ $retval -ne 0 ]; then
4446 exit $retval
You can’t perform that action at this time.
0 commit comments