From 61e3e850ae57b591d9fb50a5bb6f5782767b2114 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Mon, 26 Aug 2024 12:59:51 +0200 Subject: [PATCH 1/2] HDDS-11365. Fix the NOTICE file --- NOTICE.txt | 2 +- hadoop-hdds/pom.xml | 24 +++++++++++ hadoop-ozone/pom.xml | 23 +++++++++++ pom.xml | 20 +-------- shared/pom.xml | 98 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 147 insertions(+), 20 deletions(-) create mode 100644 shared/pom.xml diff --git a/NOTICE.txt b/NOTICE.txt index 7a1e855f6a33..cc4e3c58b39f 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,5 +1,5 @@ Apache Ozone -Copyright 2022 The Apache Software Foundation +Copyright 2024 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). diff --git a/hadoop-hdds/pom.xml b/hadoop-hdds/pom.xml index a863fe3ef5d1..b6e0d5c9f834 100644 --- a/hadoop-hdds/pom.xml +++ b/hadoop-hdds/pom.xml @@ -247,6 +247,30 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> + + + org.apache.maven.plugins + maven-remote-resources-plugin + + + org.apache.ozone:ozone-shared-resources:${ozone.version} + + + + + org.apache.ozone + ozone-shared-resources + ${ozone.version} + + + + + + process + + + + diff --git a/hadoop-ozone/pom.xml b/hadoop-ozone/pom.xml index e262895664fc..94c9983bba3c 100644 --- a/hadoop-ozone/pom.xml +++ b/hadoop-ozone/pom.xml @@ -342,6 +342,29 @@ + + org.apache.maven.plugins + maven-remote-resources-plugin + + + org.apache.ozone:ozone-shared-resources:${ozone.version} + + + + + org.apache.ozone + ozone-shared-resources + ${ozone.version} + + + + + + process + + + + diff --git a/pom.xml b/pom.xml index 4a8cac1bb50f..c4a53dd4e4c9 100644 --- a/pom.xml +++ b/pom.xml @@ -24,6 +24,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs pom + shared hadoop-hdds hadoop-ozone @@ -1708,25 +1709,6 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs org.apache.maven.plugins maven-remote-resources-plugin ${maven-remote-resources-plugin.version} - - - org.apache.hadoop:hadoop-build-tools:${hadoop.version} - - - - - org.apache.hadoop - hadoop-build-tools - ${hadoop.version} - - - - - - process - - - org.apache.maven.plugins diff --git a/shared/pom.xml b/shared/pom.xml new file mode 100644 index 000000000000..fafcb35aa025 --- /dev/null +++ b/shared/pom.xml @@ -0,0 +1,98 @@ + + + + + ozone-main + org.apache.ozone + 1.5.0-SNAPSHOT + + 4.0.0 + ozone-shared-resources + Apache Ozone Shared Resources + Apache Ozone Shared Resources + + + false + + + + + ${project.build.directory}/extra-resources + META-INF + + LICENSE.txt + NOTICE.txt + + + + + + org.apache.maven.plugins + maven-site-plugin + + true + + + + + org.apache.maven.plugins + maven-resources-plugin + + + copy-resources + validate + + copy-resources + + + ${project.build.directory}/extra-resources + + + ../ + + LICENSE.txt + NOTICE.txt + + + + + + + + + + org.apache.maven.plugins + maven-remote-resources-plugin + + + process-resources + + bundle + + + + + ${project.build.outputDirectory} + + META-INF/LICENSE.txt + META-INF/NOTICE.txt + + + + + + From 70323dabbe15e0abf410dae8a2ee6a808e008ba9 Mon Sep 17 00:00:00 2001 From: "Doroszlai, Attila" Date: Mon, 26 Aug 2024 14:47:46 +0200 Subject: [PATCH 2/2] use dev-support as the helper module --- {shared => dev-support}/pom.xml | 6 +++--- hadoop-hdds/pom.xml | 4 ++-- hadoop-ozone/dist/src/main/assemblies/ozone-src.xml | 7 +++++++ hadoop-ozone/pom.xml | 4 ++-- pom.xml | 2 +- 5 files changed, 15 insertions(+), 8 deletions(-) rename {shared => dev-support}/pom.xml (95%) diff --git a/shared/pom.xml b/dev-support/pom.xml similarity index 95% rename from shared/pom.xml rename to dev-support/pom.xml index fafcb35aa025..e11e3b32ee44 100644 --- a/shared/pom.xml +++ b/dev-support/pom.xml @@ -21,9 +21,9 @@ 1.5.0-SNAPSHOT 4.0.0 - ozone-shared-resources - Apache Ozone Shared Resources - Apache Ozone Shared Resources + ozone-dev-support + Helper module for sharing resources among projects + Apache Ozone Dev Support false diff --git a/hadoop-hdds/pom.xml b/hadoop-hdds/pom.xml index b6e0d5c9f834..87d761583014 100644 --- a/hadoop-hdds/pom.xml +++ b/hadoop-hdds/pom.xml @@ -253,13 +253,13 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> maven-remote-resources-plugin - org.apache.ozone:ozone-shared-resources:${ozone.version} + org.apache.ozone:ozone-dev-support:${ozone.version} org.apache.ozone - ozone-shared-resources + ozone-dev-support ${ozone.version} diff --git a/hadoop-ozone/dist/src/main/assemblies/ozone-src.xml b/hadoop-ozone/dist/src/main/assemblies/ozone-src.xml index 3c97d3add766..3450b3873937 100644 --- a/hadoop-ozone/dist/src/main/assemblies/ozone-src.xml +++ b/hadoop-ozone/dist/src/main/assemblies/ozone-src.xml @@ -67,6 +67,13 @@ dev-support true + + **/.classpath + **/.project + **/.settings + **/*.iml + **/target/** + hadoop-hdds diff --git a/hadoop-ozone/pom.xml b/hadoop-ozone/pom.xml index 94c9983bba3c..d91d488c4345 100644 --- a/hadoop-ozone/pom.xml +++ b/hadoop-ozone/pom.xml @@ -347,13 +347,13 @@ maven-remote-resources-plugin - org.apache.ozone:ozone-shared-resources:${ozone.version} + org.apache.ozone:ozone-dev-support:${ozone.version} org.apache.ozone - ozone-shared-resources + ozone-dev-support ${ozone.version} diff --git a/pom.xml b/pom.xml index c4a53dd4e4c9..264cd993b804 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs pom - shared + dev-support hadoop-hdds hadoop-ozone