From e7ab408b8cac0b0881829010c91844bae4bc845d Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Tue, 27 Aug 2019 18:33:44 +0200 Subject: [PATCH] Shade json-simple for JVM agent jar The dependency is then included in its own namespace, namely org.jolokia.shaded.org.json.simple*. Closes #398 --- agent/jvm/pom.xml | 56 ++++++++++++++++++--------- agent/jvm/src/main/assembly/agent.xml | 32 --------------- pom.xml | 6 +++ 3 files changed, 44 insertions(+), 50 deletions(-) delete mode 100644 agent/jvm/src/main/assembly/agent.xml diff --git a/agent/jvm/pom.xml b/agent/jvm/pom.xml index f2d5de2d..053fee8b 100644 --- a/agent/jvm/pom.xml +++ b/agent/jvm/pom.xml @@ -101,30 +101,50 @@ + - maven-assembly-plugin - - - src/main/assembly/agent.xml - - - - org.jolokia.jvmagent.JvmAgent - org.jolokia.jvmagent.JvmAgent - org.jolokia.jvmagent.client.AgentLauncher - false - false - false - - - + org.apache.maven.plugins + maven-shade-plugin + 2.3 - make-assembly package - single + shade + + + + org.jolokia.shaded. + + org.json.simple.** + + + org.jolokia.shaded.** + + + + + + com.sun:tools + + ** + + + + + + + org.jolokia.jvmagent.JvmAgent + org.jolokia.jvmagent.JvmAgent + org.jolokia.jvmagent.client.AgentLauncher + false + false + false + + + + diff --git a/agent/jvm/src/main/assembly/agent.xml b/agent/jvm/src/main/assembly/agent.xml deleted file mode 100644 index cc125050..00000000 --- a/agent/jvm/src/main/assembly/agent.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - agent - - jar - - false - - - ${artifact.artifactId}.${artifact.extension} - true - runtime - true - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 54608911..9fcf5178 100644 --- a/pom.xml +++ b/pom.xml @@ -218,6 +218,12 @@ 2.5 + + org.apache.maven.plugins + maven-shade-plugin + 2.3 + + maven-deploy-plugin 2.8.2 -- 2.21.0