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/02/05 19:59:24 UTC

(camel) branch oe created (now 6498b652d3bf)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch oe
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 6498b652d3bf CAMEL-22939: camel-jbang: observe flag ignored when camel.jbang.dependencies is set when exporting

This branch includes the following new commits:

     new 6498b652d3bf CAMEL-22939: camel-jbang: observe flag ignored when camel.jbang.dependencies is set when exporting

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: CAMEL-22939: camel-jbang: observe flag ignored when camel.jbang.dependencies is set when exporting

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch oe
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6498b652d3bf93b683d9bdea5a17f17742cf1d23
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Feb 5 20:59:08 2026 +0100

    CAMEL-22939: camel-jbang: observe flag ignored when camel.jbang.dependencies is set when exporting
---
 .../main/java/org/apache/camel/dsl/jbang/core/commands/Run.java    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
index 8e67e5be802e..63098ef9768c 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
@@ -678,10 +678,6 @@ public class Run extends CamelCommand {
         writeSetting(main, profileProperties, QUARKUS_GROUP_ID, quarkusGroupId);
         writeSetting(main, profileProperties, QUARKUS_ARTIFACT_ID, quarkusArtifactId);
 
-        if (observe) {
-            main.addInitialProperty(DEPENDENCIES, "camel:observability-services");
-        }
-
         // command line arguments
         if (property != null) {
             for (String p : property) {
@@ -990,6 +986,9 @@ public class Run extends CamelCommand {
         // Add runtime-specific dependencies
         addRuntimeSpecificDependenciesFromProperties(profileProperties);
 
+        if (observe) {
+            dependencies.add("camel:observability-services");
+        }
         if (!dependencies.isEmpty()) {
             var joined = String.join(",", dependencies);
             main.addInitialProperty(DEPENDENCIES, joined);