From 612578fe67732db75b1d069fd09c55f260bbc1fa Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Sat, 8 Apr 2017 14:23:26 +0900 Subject: [PATCH] HADOOP-14285. Update minimum version of Maven from 3.0 to 3.3. --- BUILDING.txt | 2 +- dev-support/docker/Dockerfile | 16 ++++++++++------ hadoop-project/pom.xml | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/BUILDING.txt b/BUILDING.txt index 5d331d400f..57dad328cf 100644 --- a/BUILDING.txt +++ b/BUILDING.txt @@ -5,7 +5,7 @@ Requirements: * Unix System * JDK 1.8+ -* Maven 3.0 or later +* Maven 3.3 or later * Findbugs 1.3.9 (if running findbugs) * ProtocolBuffer 2.5.0 * CMake 2.6 or newer (if compiling native code), must be 3.0 or newer on Mac diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index e3e781042d..a135c61b97 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -81,13 +81,17 @@ RUN apt-get -q install --no-install-recommends -y oracle-java8-installer #### # Apps that require Java ### -RUN apt-get -q update && apt-get -q install --no-install-recommends -y \ - ant \ - maven +RUN apt-get -q update && apt-get -q install --no-install-recommends -y ant -# Fixing the Apache commons / Maven dependency problem under Ubuntu: -# See http://wiki.apache.org/commons/VfsProblems -RUN cd /usr/share/maven/lib && ln -s ../../java/commons-lang.jar . +###### +# Install Apache Maven +###### +RUN mkdir -p /opt/maven && \ + curl -L -s -S \ + http://www-us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz \ + -o /opt/maven.tar.gz && \ + tar xzf /opt/maven.tar.gz --strip-components 1 -C /opt/maven +ENV MAVEN_HOME /opt/maven ###### # Install findbugs diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index f327933b40..bf93f0f801 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -103,7 +103,7 @@ for an open-ended enforcement --> [${javac.version},) - [3.0.2,) + [3.3.0,) -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError