diff --git a/apm-agent-attach-cli/pom.xml b/apm-agent-attach-cli/pom.xml
index 1585b0077c..51c8790aa7 100644
--- a/apm-agent-attach-cli/pom.xml
+++ b/apm-agent-attach-cli/pom.xml
@@ -56,6 +56,13 @@
${version.bouncy-castle.bc-fips}
provided
+
+
+ net.bytebuddy
+ byte-buddy-dep
+ ${version.byte-buddy}
+ test
+
diff --git a/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-5_x/pom.xml b/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-5_x/pom.xml
index 9f3c555397..ded65e6b9a 100644
--- a/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-5_x/pom.xml
+++ b/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-5_x/pom.xml
@@ -26,6 +26,12 @@
hibernate-search-orm
5.11.1.Final
provided
+
+
+ net.bytebuddy
+ byte-buddy
+
+
diff --git a/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-6_x/pom.xml b/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-6_x/pom.xml
index 5af7282348..e0c1a7c514 100644
--- a/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-6_x/pom.xml
+++ b/apm-agent-plugins/apm-hibernate-search-plugin/apm-hibernate-search-plugin-6_x/pom.xml
@@ -28,6 +28,12 @@
hibernate-search-mapper-orm
${version.hibernate.search}
provided
+
+
+ net.bytebuddy
+ byte-buddy
+
+
diff --git a/apm-agent-tracer/pom.xml b/apm-agent-tracer/pom.xml
index 88745af8bc..be90975ca4 100644
--- a/apm-agent-tracer/pom.xml
+++ b/apm-agent-tracer/pom.xml
@@ -24,6 +24,13 @@
apm-agent-common
${project.version}
+
+
+ net.bytebuddy
+ byte-buddy-dep
+ ${version.byte-buddy}
+ test
+
diff --git a/elastic-apm-agent-premain/pom.xml b/elastic-apm-agent-premain/pom.xml
index 9e6a043a54..6d66209366 100644
--- a/elastic-apm-agent-premain/pom.xml
+++ b/elastic-apm-agent-premain/pom.xml
@@ -21,6 +21,13 @@
apm-agent-common
${project.version}
+
+
+ net.bytebuddy
+ byte-buddy-dep
+ ${version.byte-buddy}
+ test
+
diff --git a/pom.xml b/pom.xml
index 18c1518289..236e168cf9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -721,12 +721,24 @@
assertj-core
3.24.2
test
+
+
+ net.bytebuddy
+ byte-buddy
+
+
org.mockito
mockito-core
${version.mockito}
test
+
+
+ net.bytebuddy
+ byte-buddy
+
+
@@ -756,7 +768,7 @@
net.javacrumbs.json-unit
json-unit-assertj
- 2.37.0
+ 3.2.2
test