diff --git a/src/java-api-bindings/scripts/install_dependencies_and_build.sh b/src/java-api-bindings/scripts/install_dependencies_and_build.sh index 09fc04814..01ce18464 100755 --- a/src/java-api-bindings/scripts/install_dependencies_and_build.sh +++ b/src/java-api-bindings/scripts/install_dependencies_and_build.sh @@ -127,8 +127,7 @@ fi # Install jdk and maven mkdir -p ${BUILD_HOME} cd ${BUILD_HOME} -apt remove maven -y && apt autoremove -y -apt update && apt install -y openjdk-11-jdk +apt update && apt remove maven -y && apt autoremove -y && apt install -y openjdk-11-jdk wget https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz tar zxvf apache-maven-${MAVEN_VERSION}-bin.tar.gz export PATH=$PATH:$PWD/apache-maven-${MAVEN_VERSION}/bin/