Uploaded image for project: 'Red Hat build of Apache Camel for Spring Boot'
  1. Red Hat build of Apache Camel for Spring Boot
  2. CSB-6739

Dependency org.apache.camel/camel-console increases the building times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • CSB-4.10.3
    • CSB-4.8.5
    • Camel, Spring Boot
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide

      1. Unzip attached zip file
      2. Run the script "run-all.sh"
      3. Notice the build times for Camel 4.4, Camel 4.8 and the Camel 4.8 fix that are shown by the reproducer at the end (Below an example)

      ---------------------
      – RESULTS –
      ---------------------
      ./csb-app44/mylog.log:2025-04-07T14:21:10.618-05:00 INFO 193513 — [main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.4.0.redhat-00019 (MyCamel) started in 433ms (build:61ms init:333ms start:39ms)

      ./csb-app48/mylog.log:2025-04-07T14:21:38.763-05:00 INFO 193779 — [main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.8.0.redhat-00017 (MyCamel) started in 6s643ms (build:64ms init:3s431ms start:3s148ms)

      ./fix-csb-app48/mylog.log:2025-04-07T14:21:54.459-05:00 INFO 194045 — [main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.8.0.redhat-00017 (MyCamel) started in 458ms (build:69ms init:361ms start:28ms)

      Show
      1. Unzip attached zip file 2. Run the script "run-all.sh" 3. Notice the build times for Camel 4.4, Camel 4.8 and the Camel 4.8 fix that are shown by the reproducer at the end (Below an example) --------------------- – RESULTS – --------------------- ./csb-app44/mylog.log:2025-04-07T14:21:10.618-05:00 INFO 193513 — [main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.4.0.redhat-00019 (MyCamel) started in 433ms (build:61ms init:333ms start:39ms) ./csb-app48/mylog.log:2025-04-07T14:21:38.763-05:00 INFO 193779 — [main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.8.0.redhat-00017 (MyCamel) started in 6s643ms (build:64ms init:3s431ms start:3s148ms) ./fix-csb-app48/mylog.log:2025-04-07T14:21:54.459-05:00 INFO 194045 — [main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.8.0.redhat-00017 (MyCamel) started in 458ms (build:69ms init:361ms start:28ms)
    • Moderate
    • Very Likely
    • 0

      Hello,

      When migrating from Camel 4.4 to Camel 4.8, I noticed the building times increased between versions.

      Checking the TRACE level log entries, I noticed some ones that did not appear before

      2025-04-07T14:21:32.190-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/spring-boot-3.3.6.jar
      
      2025-04-07T14:21:32.214-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/spring-boot-autoconfigure-3.3.6.jar
      
      2025-04-07T14:21:32.242-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/logback-classic-1.5.7.jar
      
      2025-04-07T14:21:32.247-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/logback-core-1.5.7.jar2025-04-07T14:21:32.256-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/log4j-to-slf4j-2.23.1.jar
      
      2025-04-07T14:21:32.256-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/log4j-api-2.23.1.jar
      
      2025-04-07T14:21:32.262-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/jul-to-slf4j-2.0.16.jar
      
      2025-04-07T14:21:32.263-05:00 TRACE 193779 --- [main] .c.s.b.FatJarPackageScanResourceResolver : Inspecting nested jar: /tmp/issues/reproducer/csb-app48/target/csb-app48-1.0-SNAPSHOT.jar/!/BOOT-INF/lib/jakarta.annotation-api-2.1.1.jar 

      The dependency that caused the additional logging and building times increase was

      org.apache.camel/camel-console

       that was introduced by

      org.apache.camel.springboot/camel-kafka-starter

      Once the dependency was excluded

      <dependency>
        <groupId>org.apache.camel.springboot</groupId>
        <artifactId>camel-kafka-starter</artifactId>
        <exclusions>
          <exclusion>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-console</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      the build times were back to normal
       

       

              fmariani@redhat.com Federico Mariani
              rhn-support-anarvaez Alfredo Narvaez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: