From 98d3f0eaf3bc508ba31d81264f885e143f24d32a Mon Sep 17 00:00:00 2001 From: ascrutae Date: Tue, 30 Jan 2018 15:08:52 +0800 Subject: [PATCH 1/2] [Agent] fix optional plugin doesn't works --- apm-sniffer/optional-plugins/pom.xml | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/apm-sniffer/optional-plugins/pom.xml b/apm-sniffer/optional-plugins/pom.xml index 07061b9d6..322fcace6 100644 --- a/apm-sniffer/optional-plugins/pom.xml +++ b/apm-sniffer/optional-plugins/pom.xml @@ -30,6 +30,9 @@ optional-plugins pom + net.bytebuddy + ${shade.package}.${shade.net.bytebuddy.source} + ${project.build.directory}/../../../../packages/skywalking-agent/optional-plugins @@ -60,6 +63,44 @@ + + org.apache.maven.plugins + maven-shade-plugin + 2.4.1 + + + package + + shade + + + false + true + true + true + + + com.lmax:* + org.apache.httpcomponents:* + commons-logging:* + commons-codec:* + *:gson + io.grpc:* + io.netty:* + com.google.*:* + com.google.guava:guava + + + + + ${shade.net.bytebuddy.source} + ${shade.net.bytebuddy.target} + + + + + + org.apache.maven.plugins maven-antrun-plugin From df04ed49436788ec6e01289ea20a6ac9297314f8 Mon Sep 17 00:00:00 2001 From: ascrutae Date: Tue, 30 Jan 2018 15:32:08 +0800 Subject: [PATCH 2/2] Remove incorrect exclude --- apm-sniffer/apm-sdk-plugin/pom.xml | 13 ------------- apm-sniffer/optional-plugins/pom.xml | 13 ------------- 2 files changed, 26 deletions(-) diff --git a/apm-sniffer/apm-sdk-plugin/pom.xml b/apm-sniffer/apm-sdk-plugin/pom.xml index 095740230..a4acaca4b 100644 --- a/apm-sniffer/apm-sdk-plugin/pom.xml +++ b/apm-sniffer/apm-sdk-plugin/pom.xml @@ -108,19 +108,6 @@ true true true - - - com.lmax:* - org.apache.httpcomponents:* - commons-logging:* - commons-codec:* - *:gson - io.grpc:* - io.netty:* - com.google.*:* - com.google.guava:guava - - ${shade.net.bytebuddy.source} diff --git a/apm-sniffer/optional-plugins/pom.xml b/apm-sniffer/optional-plugins/pom.xml index 322fcace6..4c9b3f925 100644 --- a/apm-sniffer/optional-plugins/pom.xml +++ b/apm-sniffer/optional-plugins/pom.xml @@ -78,19 +78,6 @@ true true true - - - com.lmax:* - org.apache.httpcomponents:* - commons-logging:* - commons-codec:* - *:gson - io.grpc:* - io.netty:* - com.google.*:* - com.google.guava:guava - - ${shade.net.bytebuddy.source}