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 9d1c81ff363d CAMEL-23551: camel-jbang - Strip spring-boot-starter deps
from camel-main export (#23513)
9d1c81ff363d is described below
commit 9d1c81ff363d355986497f783b38afceff15bbe0
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue May 26 11:44:28 2026 +0200
CAMEL-23551: camel-jbang - Strip spring-boot-starter deps from camel-main
export (#23513)
Filter out spring-boot-starter dependencies when exporting to camel-main
runtime to prevent log4j circular dependency conflicts (log4j-slf4j2-impl
vs log4j-to-slf4j). Also document that spring.datasource. configuration
is intended for JBang prototyping and Spring Boot export only.
Co-authored-by: Claude Opus 4.6 <[email protected]>
---
docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 4 ++++
.../org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java | 2 ++
2 files changed, 6 insertions(+)
diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 8635b5e886a6..6499e6ddc9ef 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -2858,6 +2858,10 @@ You would then also need to add the JAR dependency with
Maven coordinates: `org.
==== Using a Spring Boot JDBC data source
+NOTE: The `spring.datasource.` configuration is intended for rapid prototyping
with Camel JBang,
+and for users who plan to export to the Spring Boot runtime.
+It is not supported when exporting to the default Camel Main runtime or Camel
Quarkus.
+
In `application.properties` you can set up the datasource such as:
[source,properties]
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java
index 1a7faac3eaf6..d5539a39e763 100644
---
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java
+++
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportCamelMain.java
@@ -278,6 +278,8 @@ class ExportCamelMain extends Export {
answer.removeIf(s -> s.contains("camel-core"));
answer.removeIf(s -> s.contains("camel-main"));
answer.removeIf(s -> s.contains("camel-health"));
+ // spring-boot-starter JARs are not usable in camel-main runtime
+ answer.removeIf(s -> s.contains("spring-boot-starter"));
if (profile != null && Files.exists(profile)) {
Properties prop = new CamelCaseOrderedProperties();