diff --git a/pom.xml b/pom.xml
index 425730214f8..0b158cffbda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -157,6 +157,7 @@
3.0.1
1.7.25
3.1.1
+ 1.3.2
1.8.3
1.29.0
3.4.1
@@ -198,6 +199,11 @@
spotbugs-annotations
${spotbugs-annotations.version}
+
+ javax.annotation
+ javax.annotation-api
+ ${javax-annotations-api.version}
+
com.google.code.findbugs
jsr305
diff --git a/stream/common/pom.xml b/stream/common/pom.xml
index 27d52b89d75..40c8b07dde8 100644
--- a/stream/common/pom.xml
+++ b/stream/common/pom.xml
@@ -41,6 +41,12 @@
io.grpc
grpc-all
+
+ javax.annotation
+ javax.annotation-api
+
+ true
+
org.apache.bookkeeper.tests
stream-storage-tests-common
diff --git a/stream/distributedlog/core/pom.xml b/stream/distributedlog/core/pom.xml
index 0e7d8603664..5617f2c4c1e 100644
--- a/stream/distributedlog/core/pom.xml
+++ b/stream/distributedlog/core/pom.xml
@@ -54,6 +54,12 @@
bookkeeper-server
${project.parent.version}
+
+ javax.annotation
+ javax.annotation-api
+
+ true
+
org.jmock
jmock
diff --git a/stream/proto/pom.xml b/stream/proto/pom.xml
index 8a6ad978741..7c3e86fdfde 100644
--- a/stream/proto/pom.xml
+++ b/stream/proto/pom.xml
@@ -42,6 +42,12 @@
com.google.protobuf
protobuf-java
+
+ javax.annotation
+ javax.annotation-api
+
+ true
+
org.apache.bookkeeper.tests
stream-storage-tests-common
diff --git a/stream/tests-common/pom.xml b/stream/tests-common/pom.xml
index 971aecc792f..6f760251c55 100644
--- a/stream/tests-common/pom.xml
+++ b/stream/tests-common/pom.xml
@@ -37,6 +37,12 @@
com.google.protobuf
protobuf-java
+
+ javax.annotation
+ javax.annotation-api
+
+ true
+