diff --git a/hadoop-common-project/hadoop-auth/pom.xml b/hadoop-common-project/hadoop-auth/pom.xml
index f7f09025b69..6eaa4fdfce5 100644
--- a/hadoop-common-project/hadoop-auth/pom.xml
+++ b/hadoop-common-project/hadoop-auth/pom.xml
@@ -248,38 +248,6 @@
${basedir}/dev-support/findbugsExcludeFile.xml
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided implementations rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-common-project/hadoop-common/pom.xml b/hadoop-common-project/hadoop-common/pom.xml
index c0235b4db9e..bcba2288300 100644
--- a/hadoop-common-project/hadoop-common/pom.xml
+++ b/hadoop-common-project/hadoop-common/pom.xml
@@ -651,38 +651,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided implementations rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/TestReloadingX509KeyManager.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/TestReloadingX509KeyManager.java
index bf0a6abdc67..a0ce721ecf0 100644
--- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/TestReloadingX509KeyManager.java
+++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/ssl/TestReloadingX509KeyManager.java
@@ -17,7 +17,6 @@
*/
package org.apache.hadoop.security.ssl;
-import org.apache.hadoop.thirdparty.com.google.common.base.Supplier;
import org.apache.hadoop.fs.FileUtil;
import org.apache.hadoop.test.GenericTestUtils;
import org.junit.BeforeClass;
@@ -32,6 +31,7 @@
import java.security.cert.X509Certificate;
import java.util.Timer;
import java.util.concurrent.TimeoutException;
+import java.util.function.Supplier;
import static org.apache.hadoop.security.ssl.KeyStoreTestUtil.*;
import static org.junit.Assert.assertEquals;
diff --git a/hadoop-common-project/hadoop-kms/pom.xml b/hadoop-common-project/hadoop-kms/pom.xml
index d15ac0c97c8..9de8b9caf6e 100644
--- a/hadoop-common-project/hadoop-kms/pom.xml
+++ b/hadoop-common-project/hadoop-kms/pom.xml
@@ -244,38 +244,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided implementations rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-common-project/hadoop-nfs/pom.xml b/hadoop-common-project/hadoop-nfs/pom.xml
index 757a06b00f4..33d8b3710c5 100644
--- a/hadoop-common-project/hadoop-nfs/pom.xml
+++ b/hadoop-common-project/hadoop-nfs/pom.xml
@@ -114,38 +114,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided implementations rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-common-project/hadoop-registry/pom.xml b/hadoop-common-project/hadoop-registry/pom.xml
index 7623bfd6d36..171b7229035 100644
--- a/hadoop-common-project/hadoop-registry/pom.xml
+++ b/hadoop-common-project/hadoop-registry/pom.xml
@@ -271,38 +271,6 @@
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided implementations rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-client/pom.xml
index c7ddf060615..d65e6030369 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-client/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-client/pom.xml
@@ -178,38 +178,6 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
org.apache.hadoop.hdfs.protocol.proto
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided VisibleForTesting rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
index 559eb5a6597..1916ef0e3b7 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/pom.xml
@@ -343,38 +343,6 @@
${basedir}/dev-support/findbugsExcludeFile.xml
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided VisibleForTesting rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml
index 9043d4972ce..24599a2b244 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-nfs/pom.xml
@@ -219,38 +219,6 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided VisibleForTesting rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml b/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml
index 0eaff17b844..e17602d1f64 100644
--- a/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/pom.xml
@@ -305,38 +305,6 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided VisibleForTesting rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-
diff --git a/hadoop-hdfs-project/hadoop-hdfs/pom.xml b/hadoop-hdfs-project/hadoop-hdfs/pom.xml
index 863094cb0cb..10d66d055ba 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/pom.xml
+++ b/hadoop-hdfs-project/hadoop-hdfs/pom.xml
@@ -447,38 +447,6 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- de.skuzzle.enforcer
- restrict-imports-enforcer-rule
- ${restrict-imports.enforcer.version}
-
-
-
-
- banned-illegal-imports
- process-sources
-
- enforce
-
-
-
-
- true
- Use hadoop-common provided VisibleForTesting rather than the one provided by Guava
-
- org.apache.hadoop.thirdparty.com.google.common.base.Preconditions
- com.google.common.base.Preconditions
-
-
-
-
-
-
-