diff --git a/jhipster-5/bookstore-monolith/pom.xml b/jhipster-5/bookstore-monolith/pom.xml
index 233765e0f3..4e4c82f327 100644
--- a/jhipster-5/bookstore-monolith/pom.xml
+++ b/jhipster-5/bookstore-monolith/pom.xml
@@ -225,6 +225,12 @@
io.dropwizard.metrics
metrics-core
+
+ net.bytebuddy
+ byte-buddy
+ ${byte-buddy.version}
+ test
+
diff --git a/libraries-data-2/pom.xml b/libraries-data-2/pom.xml
index 2d27ec2107..ac23747caa 100644
--- a/libraries-data-2/pom.xml
+++ b/libraries-data-2/pom.xml
@@ -153,7 +153,13 @@
renjin-script-engine
${renjin.version}
-
+
+ net.bytebuddy
+ byte-buddy
+ ${byte-buddy.version}
+ test
+
+
org.apache.kafka
kafka-clients
${kafka.version}
diff --git a/libraries-testing/pom.xml b/libraries-testing/pom.xml
index 89cb0bd494..5a5cb99238 100644
--- a/libraries-testing/pom.xml
+++ b/libraries-testing/pom.xml
@@ -151,6 +151,13 @@
test
+
+ net.bytebuddy
+ byte-buddy
+ ${byte-buddy.version}
+ test
+
+
diff --git a/parent-boot-2/pom.xml b/parent-boot-2/pom.xml
index 631d8a0581..c7bb11b1d5 100644
--- a/parent-boot-2/pom.xml
+++ b/parent-boot-2/pom.xml
@@ -32,11 +32,6 @@
io.rest-assured
rest-assured
-
- net.bytebuddy
- byte-buddy
- ${byte-buddy.version}
-
org.springframework.boot
spring-boot-starter-test
diff --git a/persistence-modules/hibernate-enterprise/pom.xml b/persistence-modules/hibernate-enterprise/pom.xml
index 060cb4c904..ae58e409c4 100644
--- a/persistence-modules/hibernate-enterprise/pom.xml
+++ b/persistence-modules/hibernate-enterprise/pom.xml
@@ -55,6 +55,12 @@
hibernate-testing
${hibernate.version}
+
+ net.bytebuddy
+ byte-buddy
+ ${byte-buddy.version}
+ test
+
diff --git a/pom.xml b/pom.xml
index f797f1bbce..20adc4bfef 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,12 +69,6 @@
${hamcrest-all.version}
test
-
- net.bytebuddy
- byte-buddy
- ${byte-buddy.version}
- test
-
org.mockito
mockito-core
diff --git a/spring-cloud-data-flow/spring-cloud-data-flow-stream-processing/data-flow-server/pom.xml b/spring-cloud-data-flow/spring-cloud-data-flow-stream-processing/data-flow-server/pom.xml
index ba108dc5c7..34da489cd1 100644
--- a/spring-cloud-data-flow/spring-cloud-data-flow-stream-processing/data-flow-server/pom.xml
+++ b/spring-cloud-data-flow/spring-cloud-data-flow-stream-processing/data-flow-server/pom.xml
@@ -50,6 +50,12 @@
hibernate-entitymanager
${hibernate.compatible.version}
+
+ net.bytebuddy
+ byte-buddy
+ ${byte-buddy.version}
+ test
+