From c5ef56970bec44c6299c973cc7b313bc6561229c Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Tue, 25 Apr 2023 20:44:15 -0700 Subject: [PATCH] HADOOP-18718. Fix several maven build warnings --- .../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 b1c00678406..eee5ecadec2 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 0e576ac6f06..bdf82d38ab5 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 a9e15d004d4..41707f50024 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 0b1c6012673..e617fa765f9 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 a5bf5c1c318..6ba0e02a8f6 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 5f156499ee0..baca814eccb 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 7530428d752..2f90a905187 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 5cec569dfa8..aaa01380a43 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 3d742fab5c8..20d928ef01e 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 5194e51d81f..cbdce3d76f5 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 63269b3878c..036193da7a4 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 f1731751c47..b82438917a5 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 6837de80014..8ef7b0d03a3 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 42a11795274..13f738d0f78 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 +