chore(native): Upgrade Maven to version 3.8.2
FROM quay.io/quarkus/ubi-quarkus-mandrel:21.2.0.0-Final-java11
-ARG MAVEN_VERSION="3.6.3"
-ARG SHA="c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0"
+ARG MAVEN_VERSION="3.8.2"
+ARG MAVEN_HOME="/usr/share/maven"
+ARG SHA="b0bf39460348b2d8eae1c861ced6c3e8a077b6e761fb3d4669be5de09490521a74db294cf031b0775b2dfcd57bd82246e42ce10904063ef8e3806222e686f222"
ARG BASE_URL="https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries"
USER 0
-RUN mkdir -p /usr/share/maven \
+RUN mkdir -p ${MAVEN_HOME} \
&& curl -Lso /tmp/maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
&& echo "${SHA} /tmp/maven.tar.gz" | sha512sum -c - \
- && tar -xzC /usr/share/maven --strip-components=1 -f /tmp/maven.tar.gz \
+ && tar -xzC ${MAVEN_HOME} --strip-components=1 -f /tmp/maven.tar.gz \
&& rm -v /tmp/maven.tar.gz \
- && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn \
- && rm /usr/share/maven/lib/maven-slf4j-provider*
+ && ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn \
+ && rm ${MAVEN_HOME}/lib/maven-slf4j-provider*
ADD build/_maven_output /tmp/artifacts/m2
ADD build/_kamelets /kamelets
