Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17850

Event streaming example jitpack dependency cant be built


    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • camel-k-1.6-GA
    • camel-k-1.6-GA
    • Camel-K, Examples
    • None

      Event streaming integrations are using jitpack dependencies, for example EarthquakeConsumer with no version specified. In that case, master-SNAPSHOT is used as a version. The problem is that this version does not exist:

      {"level":"info","ts":1637572776.1075878,"logger":"camel-k.maven.build","msg":"[ERROR] Failed to execute goal on project camel-k-integration: Could not resolve dependencies for project org.apache.camel.k.integration:camel-k-integration:jar:1.6.0: Failure to find com.github.openshift-integration:camel-k-example-event-streaming:jar:master-SNAPSHOT in http://nexus.test-infra.svc.cluster.local/repository/maven-proxy was cached in the local repository, resolution will not be reattempted until the update interval of mirror-000 has elapsed or updates are forced -> [Help 1]"}

      (that repository is a nexus maven group with multiple repositoies + jitpack)

      The problem is that there is no master branch in the quickstart, as that was renamed in the past to main. Changing the depedency to github:openshift-integration:camel-k-example-event-streaming:main-SNAPSHOT fixes the problem:

      "[INFO] Downloaded from mirror-000: http://nexus.test-infra.svc.cluster.local/repository/maven-proxy/com/github/openshift-integration/camel-k-example-event-streaming/main-SNAPSHOT/camel-k-example-event-streaming-main-SNAPSHOT.jar (13 kB at 116 kB/s)"}

            pcongius Pasquale Congiusti
            avano@redhat.com Andrej Vano
            Andrej Vano Andrej Vano
            0 Vote for this issue
            2 Start watching this issue