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 c85f428c1..09fc04814 100755 --- a/src/java-api-bindings/scripts/install_dependencies_and_build.sh +++ b/src/java-api-bindings/scripts/install_dependencies_and_build.sh @@ -127,6 +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 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