From fb16e00da0e7c50cba8bf238fad7d09281717848 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Sat, 10 Jun 2023 23:08:13 -0700 Subject: [PATCH] HADOOP-18718. Fix several maven build warnings (#5592). Contributed by Dongjoon Hyun. Reviewed-by: Gautham B A Signed-off-by: Ayush Saxena --- .../hadoop-client-check-invariants/pom.xml | 1 - .../pom.xml | 1 - hadoop-common-project/hadoop-common/pom.xml | 1 - hadoop-dist/pom.xml | 3 --- hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml | 13 ++++------ hadoop-hdfs-project/hadoop-hdfs/pom.xml | 4 ++-- .../hadoop-mapreduce-client-core/pom.xml | 4 ++-- hadoop-project-dist/pom.xml | 1 - hadoop-tools/hadoop-benchmark/pom.xml | 7 ------ hadoop-tools/hadoop-distcp/pom.xml | 24 +++++-------------- .../hadoop-federation-balance/pom.xml | 24 +++++-------------- .../hadoop-yarn/hadoop-yarn-common/pom.xml | 4 ++-- .../hadoop-yarn-server-common/pom.xml | 8 +++---- pom.xml | 4 ++++ 14 files changed, 31 insertions(+), 68 deletions(-) diff --git a/hadoop-client-modules/hadoop-client-check-invariants/pom.xml b/hadoop-client-modules/hadoop-client-check-invariants/pom.xml index b1c0067840..eee5ecadec 100644 --- a/hadoop-client-modules/hadoop-client-check-invariants/pom.xml +++ b/hadoop-client-modules/hadoop-client-check-invariants/pom.xml @@ -180,7 +180,6 @@ ${shell-executable} ${project.build.testOutputDirectory} - false ensure-jars-have-correct-contents.sh ${hadoop-client-artifacts} diff --git a/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml b/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml index 0e576ac6f0..bdf82d38ab 100644 --- a/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml +++ b/hadoop-client-modules/hadoop-client-check-test-invariants/pom.xml @@ -190,7 +190,6 @@ ${shell-executable} ${project.build.testOutputDirectory} - false ensure-jars-have-correct-contents.sh ${hadoop-client-artifacts} diff --git a/hadoop-common-project/hadoop-common/pom.xml b/hadoop-common-project/hadoop-common/pom.xml index a9e15d004d..41707f5002 100644 --- a/hadoop-common-project/hadoop-common/pom.xml +++ b/hadoop-common-project/hadoop-common/pom.xml @@ -1084,7 +1084,6 @@ ${basedir}/../../dev-support/bin/releasedocmaker - true --index --license diff --git a/hadoop-dist/pom.xml b/hadoop-dist/pom.xml index 0b1c601267..e617fa765f 100644 --- a/hadoop-dist/pom.xml +++ b/hadoop-dist/pom.xml @@ -179,7 +179,6 @@ ${shell-executable} ${project.build.directory} - false ${basedir}/../dev-support/bin/dist-layout-stitching @@ -198,7 +197,6 @@ ${shell-executable} ${basedir} - false ${basedir}/../dev-support/bin/dist-tools-hooks-maker @@ -219,7 +217,6 @@ ${shell-executable} ${project.build.directory} - false ${basedir}/../dev-support/bin/dist-tar-stitching diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml index a5bf5c1c31..47b4adaf83 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml @@ -190,12 +190,9 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> org.apache.maven.plugins maven-surefire-plugin - - - derby.stream.error.file - ${project.build.directory}/derby.log - - + + ${project.build.directory}/derby.log + @@ -251,10 +248,10 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> run - + - + diff --git a/hadoop-hdfs-project/hadoop-hdfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/pom.xml index 5f156499ee..baca814ecc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/pom.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/pom.xml @@ -307,10 +307,10 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> run - + - + diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/pom.xml b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/pom.xml index 7530428d75..2f90a90518 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/pom.xml +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/pom.xml @@ -136,10 +136,10 @@ run - + - + diff --git a/hadoop-project-dist/pom.xml b/hadoop-project-dist/pom.xml index 5cec569dfa..aaa01380a4 100644 --- a/hadoop-project-dist/pom.xml +++ b/hadoop-project-dist/pom.xml @@ -328,7 +328,6 @@ ${shell-executable} ${project.build.directory} - false ${project.parent.basedir}/../dev-support/bin/dist-copynativelibs --version=${project.version} diff --git a/hadoop-tools/hadoop-benchmark/pom.xml b/hadoop-tools/hadoop-benchmark/pom.xml index 3d742fab5c..20d928ef01 100644 --- a/hadoop-tools/hadoop-benchmark/pom.xml +++ b/hadoop-tools/hadoop-benchmark/pom.xml @@ -71,13 +71,6 @@ - - org.codehaus.mojo - findbugs-maven-plugin - - ${basedir}/src/main/findbugs/exclude.xml - - com.github.spotbugs spotbugs-maven-plugin diff --git a/hadoop-tools/hadoop-distcp/pom.xml b/hadoop-tools/hadoop-distcp/pom.xml index 5194e51d81..cbdce3d76f 100644 --- a/hadoop-tools/hadoop-distcp/pom.xml +++ b/hadoop-tools/hadoop-distcp/pom.xml @@ -142,24 +142,12 @@ **/Test*.java true - - - test.build.data - ${basedir}/target/test/data - - - hadoop.log.dir - target/test/logs - - - org.apache.commons.logging.Log - org.apache.commons.logging.impl.SimpleLog - - - org.apache.commons.logging.simplelog.defaultlog - warn - - + + ${basedir}/target/test/data + target/test/logs + org.apache.commons.logging.impl.SimpleLog + warn + diff --git a/hadoop-tools/hadoop-federation-balance/pom.xml b/hadoop-tools/hadoop-federation-balance/pom.xml index 63269b3878..036193da7a 100644 --- a/hadoop-tools/hadoop-federation-balance/pom.xml +++ b/hadoop-tools/hadoop-federation-balance/pom.xml @@ -152,24 +152,12 @@ **/Test*.java true - - - test.build.data - ${basedir}/target/test/data - - - hadoop.log.dir - target/test/logs - - - org.apache.commons.logging.Log - org.apache.commons.logging.impl.SimpleLog - - - org.apache.commons.logging.simplelog.defaultlog - warn - - + + ${basedir}/target/test/data + target/test/logs + org.apache.commons.logging.impl.SimpleLog + warn + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml index f1731751c4..b82438917a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/pom.xml @@ -387,10 +387,10 @@ run - + - + diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/pom.xml index 6837de8001..8ef7b0d03a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/pom.xml @@ -176,9 +176,9 @@ run - + - + @@ -188,12 +188,12 @@ run - + - + diff --git a/pom.xml b/pom.xml index 42a1179527..13f738d0f7 100644 --- a/pom.xml +++ b/pom.xml @@ -611,6 +611,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x org.cyclonedx cyclonedx-maven-plugin + ${cyclonedx.version} @@ -769,6 +770,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/x + + xml +