From ea95a335d0694cc52cbfdf1c6d1080af4eb92237 Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Mon, 16 Apr 2018 10:15:17 -0700 Subject: [PATCH] HADOOP-15369. Avoid usage of ${project.version} in parent poms. Contributed by Elek Marton. --- hadoop-project-dist/pom.xml | 4 +- hadoop-project/pom.xml | 158 ++++++++++++++++++------------------ pom.xml | 27 ++++++ 3 files changed, 108 insertions(+), 81 deletions(-) diff --git a/hadoop-project-dist/pom.xml b/hadoop-project-dist/pom.xml index e554be4075..6dbc131991 100644 --- a/hadoop-project-dist/pom.xml +++ b/hadoop-project-dist/pom.xml @@ -120,7 +120,7 @@ org.apache.hadoop hadoop-annotations - ${project.version} + ${hadoop.version} true @@ -393,7 +393,7 @@ org.apache.hadoop hadoop-assemblies - ${project.version} + ${hadoop.version} diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index c09392793a..02ea0ba008 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -50,7 +50,7 @@ 0.8.2.1 - ${project.version} + 3.2.0-SNAPSHOT 1.0.13 ${project.build.directory}/test-dir @@ -139,7 +139,7 @@ 1.5 - ${project.version} + ${hadoop.version} 1.5.4 1.16 @@ -168,403 +168,403 @@ org.apache.hadoop hadoop-assemblies - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-annotations - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-client-modules - ${project.version} + ${hadoop.version} pom org.apache.hadoop hadoop-client-api - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-client-check-invariants - ${project.version} + ${hadoop.version} pom org.apache.hadoop hadoop-client-check-test-invariants - ${project.version} + ${hadoop.version} pom org.apache.hadoop hadoop-client-integration-tests - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-client-runtime - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-client-minicluster - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-common - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-common - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-auth - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-auth - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-nfs - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-hdfs - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-hdfs-client - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-hdfs-rbf - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-hdfs - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-mapreduce-client-app - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-mapreduce-client-app - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-mapreduce-client-common - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-api - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-client - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-mapreduce-client-core - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-mapreduce-client-jobclient - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-mapreduce-client-shuffle - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn - ${project.version} + ${hadoop.version} pom org.apache.hadoop hadoop-yarn-server - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-web-proxy - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-common - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-common - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-yarn-server-tests - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-yarn-common - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-common - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-yarn-registry - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-nodemanager - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-resourcemanager - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-resourcemanager - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-yarn-server-applicationhistoryservice - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-timelineservice - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-timelineservice - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-yarn-server-timelineservice-hbase-client - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-timelineservice-hbase-common - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-applications-distributedshell - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-timeline-pluginstorage - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-timeline-pluginstorage test-jar - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-server-router - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-yarn-services-core - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-mapreduce-client-jobclient - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-mapreduce-client-hs - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-mapreduce-examples - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-gridmix - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-streaming - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-archives - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-archive-logs - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-distcp - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-distcp - ${project.version} + ${hadoop.version} test-jar org.apache.hadoop hadoop-datajoin - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-rumen - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-extras - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-client - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-minicluster - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-minikdc - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-openstack - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-azure - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-azure-datalake - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-aws - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-aliyun - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-kms - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-kms - ${project.version} + ${hadoop.version} test-jar @@ -1111,12 +1111,12 @@ org.apache.hadoop hadoop-sls - ${project.version} + ${hadoop.version} org.apache.hadoop hadoop-cloud-storage - ${project.version} + ${hadoop.version} com.google.code.findbugs @@ -1515,7 +1515,7 @@ org.apache.hadoop hadoop-maven-plugins - ${project.version} + ${hadoop.version} @@ -1544,14 +1544,14 @@ ${maven-remote-resources-plugin.version} - org.apache.hadoop:hadoop-build-tools:${project.version} + org.apache.hadoop:hadoop-build-tools:${hadoop.version} org.apache.hadoop hadoop-build-tools - ${project.version} + ${hadoop.version} @@ -1862,7 +1862,7 @@ org.apache.hadoop ${hbase-server-artifactid} - ${project.version} + ${hadoop.version} @@ -1889,7 +1889,7 @@ org.apache.hadoop ${hbase-server-artifactid} - ${project.version} + ${hadoop.version} diff --git a/pom.xml b/pom.xml index 6cb2d4dc56..c76149364b 100644 --- a/pom.xml +++ b/pom.xml @@ -79,6 +79,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs + + 3.2.0-SNAPSHOT + apache.snapshots.https Apache Development Snapshot Repository https://repository.apache.org/content/repositories/snapshots @@ -420,6 +423,30 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs dependency-check-maven ${dependency-check-maven.version} + + org.apache.maven.plugins + maven-enforcer-plugin + ${maven-enforcer-plugin.version} + + + enforce-property + + enforce + + + + + hadoop.version + You must set a hadoop.version to be the same as ${project.version} + ${project.version} + The hadoop.version property should be set and should be ${project.version}. + + + true + + + +