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 e20f87f35082 chore: camel-launcher - the CLI distribution no longer 
ships lombok, nor commons-logging next to jcl-over-slf4j (#30126)
e20f87f35082 is described below

commit e20f87f35082552976f042fb47bfd8d47d73d625
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Nov 15 23:06:43 2026 +0100

    chore: camel-launcher - the CLI distribution no longer ships lombok, nor 
commons-logging next to jcl-over-slf4j (#30126)
    
    …nor commons-logging next to jcl-over-slf4j
    
    lombok (2 MB) came with openapi-generator, whose pom has it in the
    compile scope. Its classes only refer to @lombok.Generated, which has
    CLASS retention, so nothing loads lombok at runtime.
    
    commons-logging (1.2 from httpclient, 1.3.5 from spring-core) has the
    same org.apache.commons.logging classes as jcl-over-slf4j, which the
    launcher declares, so the first of the two on the class path won.
    Now there is only jcl-over-slf4j.
    
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 dsl/camel-jbang/camel-jbang-plugin-generate/pom.xml |  6 ++++++
 dsl/camel-jbang/camel-launcher/pom.xml              | 14 ++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/dsl/camel-jbang/camel-jbang-plugin-generate/pom.xml 
b/dsl/camel-jbang/camel-jbang-plugin-generate/pom.xml
index a579b9e1a218..01525f3453a5 100644
--- a/dsl/camel-jbang/camel-jbang-plugin-generate/pom.xml
+++ b/dsl/camel-jbang/camel-jbang-plugin-generate/pom.xml
@@ -86,6 +86,12 @@
                     <groupId>org.slf4j</groupId>
                     <artifactId>slf4j-simple</artifactId>
                 </exclusion>
+                <!-- only of use when openapi-generator itself is compiled 
(its pom has it in the compile scope),
+                     and 2 MB in the Camel CLI distribution -->
+                <exclusion>
+                    <groupId>org.projectlombok</groupId>
+                    <artifactId>lombok</artifactId>
+                </exclusion>
             </exclusions>
         </dependency>
         <dependency>
diff --git a/dsl/camel-jbang/camel-launcher/pom.xml 
b/dsl/camel-jbang/camel-launcher/pom.xml
index 6681bad327df..73da9f18d023 100644
--- a/dsl/camel-jbang/camel-launcher/pom.xml
+++ b/dsl/camel-jbang/camel-launcher/pom.xml
@@ -88,6 +88,13 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-jbang-core</artifactId>
             <version>${project.version}</version>
+            <exclusions>
+                <!-- from spring-core: jcl-over-slf4j below has the same 
classes, and sends the logging to slf4j -->
+                <exclusion>
+                    <groupId>commons-logging</groupId>
+                    <artifactId>commons-logging</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
 
         <!-- Pre-installed plugins -->
@@ -254,6 +261,13 @@
             <groupId>org.apache.httpcomponents</groupId>
             <artifactId>httpclient</artifactId>
             <version>${httpclient-version}</version>
+            <exclusions>
+                <!-- jcl-over-slf4j below has the same classes, and sends the 
logging to slf4j -->
+                <exclusion>
+                    <groupId>commons-logging</groupId>
+                    <artifactId>commons-logging</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
         <dependency>
             <groupId>org.apache.httpcomponents</groupId>

Reply via email to