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 148d040295bf chore: camel-jbang-console - remove stale route-diagram 
dev-console metadata (#25884)
148d040295bf is described below

commit 148d040295bfdcc903ba6ebd0b209bf5d6f0e31e
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Aug 29 13:33:29 2026 +0200

    chore: camel-jbang-console - remove stale route-diagram dev-console 
metadata (#25884)
    
    DiagramDevConsole moved out of org.apache.camel.jbang.console into
    components/camel-diagram (CAMEL-23400), but the generated dev-console
    metadata for the old class was never cleaned up since the generator only
    adds/updates files, never removes orphaned ones for classes that no longer
    exist.
    
    The stale META-INF/services/org/apache/camel/dev-console/route-diagram
    marker still points at the deleted class. Any classpath scan that reaches it
    (DefaultDevConsolesLoader.loadDevConsoles) triggers
    DefaultDevConsoleResolver.resolveDevConsole to fail resolving the class,
    which throws IllegalArgumentException instead of the ignored
    NoFactoryAvailableException, aborting the whole scan loop and silently
    preventing the real jbang/source-dir consoles in this module from loading.
    
    Signed-off-by: Claus Ibsen <[email protected]>
    Co-authored-by: Claude Sonnet 5 <[email protected]>
---
 .../org/apache/camel/dev-console/route-diagram.json       | 15 ---------------
 .../services/org/apache/camel/dev-console/route-diagram   |  2 --
 2 files changed, 17 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-console/src/generated/resources/META-INF/org/apache/camel/dev-console/route-diagram.json
 
b/dsl/camel-jbang/camel-jbang-console/src/generated/resources/META-INF/org/apache/camel/dev-console/route-diagram.json
deleted file mode 100644
index 98f9304168fb..000000000000
--- 
a/dsl/camel-jbang/camel-jbang-console/src/generated/resources/META-INF/org/apache/camel/dev-console/route-diagram.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-  "console": {
-    "kind": "console",
-    "group": "camel-jbang",
-    "name": "route-diagram",
-    "title": "Route Diagram",
-    "description": "Visual route diagrams",
-    "deprecated": false,
-    "javaType": "org.apache.camel.jbang.console.DiagramDevConsole",
-    "groupId": "org.apache.camel",
-    "artifactId": "camel-jbang-console",
-    "version": "4.23.0-SNAPSHOT"
-  }
-}
-
diff --git 
a/dsl/camel-jbang/camel-jbang-console/src/generated/resources/META-INF/services/org/apache/camel/dev-console/route-diagram
 
b/dsl/camel-jbang/camel-jbang-console/src/generated/resources/META-INF/services/org/apache/camel/dev-console/route-diagram
deleted file mode 100644
index 9489d2910671..000000000000
--- 
a/dsl/camel-jbang/camel-jbang-console/src/generated/resources/META-INF/services/org/apache/camel/dev-console/route-diagram
+++ /dev/null
@@ -1,2 +0,0 @@
-# Generated by camel build tools - do NOT edit this file!
-class=org.apache.camel.jbang.console.DiagramDevConsole

Reply via email to