You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/06/24 12:59:15 UTC
(camel) branch main updated: CAMEL-23448: Add jolokia-agent-jvm at compile scope for launcher classpath
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 5f41d376152d CAMEL-23448: Add jolokia-agent-jvm at compile scope for launcher classpath
5f41d376152d is described below
commit 5f41d376152d0bee1fc6eec1021e780e4a8dfde2
Author: Salvatore Mongiardo <sm...@redhat.com>
AuthorDate: Wed Jun 24 14:59:08 2026 +0200
CAMEL-23448: Add jolokia-agent-jvm at compile scope for launcher classpath
The camel-launcher fat JAR needs the Jolokia API classes (OptionsAndArgs,
CommandDispatcher, etc.) on its classpath. The existing javaagent-classified
dependency at provided scope only ships the agent JAR for JVM attach but
does not include the classes in the shaded JAR, causing NoClassDefFoundError
when running camel-launcher jolokia.
Add the regular (no classifier) jolokia-agent-jvm dependency at compile
scope so the shade plugin bundles the Jolokia classes inside the fat JAR.
Closes #24217
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
dsl/camel-jbang/camel-launcher/pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dsl/camel-jbang/camel-launcher/pom.xml b/dsl/camel-jbang/camel-launcher/pom.xml
index 9004187a9723..a5d5c08b01d5 100644
--- a/dsl/camel-jbang/camel-launcher/pom.xml
+++ b/dsl/camel-jbang/camel-launcher/pom.xml
@@ -235,6 +235,11 @@
<artifactId>jcl-over-slf4j</artifactId>
<version>${jcl-over-slf4j-version}</version>
</dependency>
+ <dependency>
+ <groupId>org.jolokia</groupId>
+ <artifactId>jolokia-agent-jvm</artifactId>
+ <version>${jolokia-version}</version>
+ </dependency>
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-agent-jvm</artifactId>