diff --git a/hadoop-hdds/erasurecode/pom.xml b/hadoop-hdds/erasurecode/pom.xml
index cb95483dc24..494559fec5c 100644
--- a/hadoop-hdds/erasurecode/pom.xml
+++ b/hadoop-hdds/erasurecode/pom.xml
@@ -47,7 +47,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
com.github.spotbugs
spotbugs-annotations
- compile
+ provided
diff --git a/hadoop-hdds/framework/pom.xml b/hadoop-hdds/framework/pom.xml
index fdc52db6616..285e857d28f 100644
--- a/hadoop-hdds/framework/pom.xml
+++ b/hadoop-hdds/framework/pom.xml
@@ -167,7 +167,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
com.github.spotbugs
spotbugs-annotations
- compile
+ provided
diff --git a/hadoop-hdds/rocks-native/pom.xml b/hadoop-hdds/rocks-native/pom.xml
index 3c6702f45fb..e40a95d0076 100644
--- a/hadoop-hdds/rocks-native/pom.xml
+++ b/hadoop-hdds/rocks-native/pom.xml
@@ -40,7 +40,7 @@
com.github.spotbugs
spotbugs-annotations
- compile
+ provided
org.junit.jupiter
diff --git a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
index 51cdfe07dcc..6e8f8df049c 100644
--- a/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
+++ b/hadoop-hdds/rocksdb-checkpoint-differ/pom.xml
@@ -53,7 +53,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
com.github.spotbugs
spotbugs-annotations
- compile
+ provided
org.apache.commons
diff --git a/hadoop-ozone/integration-test/pom.xml b/hadoop-ozone/integration-test/pom.xml
index 0a35660a396..6e202d02671 100644
--- a/hadoop-ozone/integration-test/pom.xml
+++ b/hadoop-ozone/integration-test/pom.xml
@@ -277,6 +277,11 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
org.slf4j
jul-to-slf4j
+
+ com.github.spotbugs
+ spotbugs-annotations
+ test
+
diff --git a/pom.xml b/pom.xml
index 890c08d314d..6b96b85b409 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1632,6 +1632,18 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xs
org.codehaus.mojo
license-maven-plugin
${license-maven-plugin.version}
+
+
+ org.apache.maven.doxia
+ doxia-core
+ 1.6
+
+
+ org.apache.maven.doxia
+ doxia-site-renderer
+ 1.6
+
+
false
${project.basedir}