From e28ad36dfb8960760314af613d624e1a00ac4cb2 Mon Sep 17 00:00:00 2001 From: Jonas Kunz Date: Thu, 21 Sep 2023 15:43:31 +0200 Subject: [PATCH] Fixes ByteBuddy AbstractMethodError which could occur when running tests from IDE (#3327) --- apm-agent-attach-cli/pom.xml | 7 +++++++ .../apm-hibernate-search-plugin-5_x/pom.xml | 6 ++++++ .../apm-hibernate-search-plugin-6_x/pom.xml | 6 ++++++ apm-agent-tracer/pom.xml | 7 +++++++ elastic-apm-agent-premain/pom.xml | 7 +++++++ pom.xml | 14 +++++++++++++- 6 files changed, 46 insertions(+), 1 deletion(-) 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