diff --git a/hadoop-build-tools/pom.xml b/hadoop-build-tools/pom.xml
index e84c94fa51..b80cf57852 100644
--- a/hadoop-build-tools/pom.xml
+++ b/hadoop-build-tools/pom.xml
@@ -29,6 +29,19 @@
false
+
+
+ ${project.basedir}/target/extra-resources
+ META-INF
+
+ LICENSE.txt
+ NOTICE.txt
+
+
+
+ ${project.basedir}/src/main/resources
+
+
org.apache.maven.plugins
@@ -37,17 +50,46 @@
true
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+
+
+ copy-resources
+ validate
+
+ copy-resources
+
+
+ ${project.basedir}/target/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
@@ -69,4 +111,4 @@
-
\ No newline at end of file
+
diff --git a/pom.xml b/pom.xml
index 6e66f8b78f..ac3bec6672 100644
--- a/pom.xml
+++ b/pom.xml
@@ -413,32 +413,6 @@ 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-antrun-plugin
-
-
- copy-files
- process-resources
-
- run
-
-
-
-
-
-
-
-
-
-
-
-
-
-