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

Camel-K Jitpack integration does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • camel-K-M3
    • camel-K-M3
    • Camel-K
    • None

      I am getting the following error from Event Streaming QS.

       

      [INFO] Downloading from jitpack: https://jitpack.io/com/github/openshift-integration/camel-k-example-event-streaming/master-SNAPSHOT/maven-metadata.xml
      [WARNING] Could not transfer metadata com.github.openshift-integration:camel-k-example-event-streaming:master-SNAPSHOT/maven-metadata.xml from/to jitpack (https://jitpack.io): NullPointerException
      [WARNING] Failure to transfer com.github.openshift-integration:camel-k-example-event-streaming:master-SNAPSHOT/maven-metadata.xml from https://jitpack.io was cached in the local repository, resolution will not be reattempted until the update interval of jitpack has elapsed or updates are forced. Original error: Could not transfer metadata com.github.openshift-integration:camel-k-example-event-streaming:master-SNAPSHOT/maven-metadata.xml from/to jitpack (https://jitpack.io): NullPointerException
      [INFO] Downloading from jitpack: https://jitpack.io/com/github/openshift-integration/camel-k-example-event-streaming/master-SNAPSHOT/camel-k-example-event-streaming-master-SNAPSHOT.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
       

      I tried to reproduce this error on my localhost:
      1. I downloaded settings.xml generated by Camel-K

       <?xml version="1.0" encoding="UTF-8"?>
          <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
            <localRepository></localRepository>
            <profiles>
              <profile>
                <id>maven-settings</id>
                <activation>
                  <activeByDefault>true</activeByDefault>
                </activation>
                <repositories>
                  <repository>
                    <id>redhat.ga</id>
                    <url>https://maven.repository.redhat.com/ga</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </repository>
                  <repository>
                    <id>redhat.ea</id>
                    <url>https://maven.repository.redhat.com/earlyaccess/all</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </repository>
                  <repository>
                    <id>central</id>
                    <url>https://repo.maven.apache.org/maven2</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </repository>
                  <repository>
                    <id>repository-000</id>
                    <url>http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </repository>
                  <repository>
                    <id>jitpack</id>
                    <url>https://jitpack.io</url>
                    <snapshots>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </repository>
                </repositories>
                <pluginRepositories>
                  <pluginRepository>
                    <id>redhat.ga</id>
                    <url>https://maven.repository.redhat.com/ga</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </pluginRepository>
                  <pluginRepository>
                    <id>redhat.ea</id>
                    <url>https://maven.repository.redhat.com/earlyaccess/all</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </pluginRepository>
                  <pluginRepository>
                    <id>central</id>
                    <url>https://repo.maven.apache.org/maven2</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </pluginRepository>
                  <pluginRepository>
                    <id>repository-000</id>
                    <url>http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all</url>
                    <snapshots>
                      <enabled>false</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </pluginRepository>
                  <pluginRepository>
                    <id>jitpack</id>
                    <url>https://jitpack.io</url>
                    <snapshots>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </snapshots>
                    <releases>
                      <enabled>true</enabled>
                      <checksumPolicy>fail</checksumPolicy>
                    </releases>
                  </pluginRepository>
                </pluginRepositories>
              </profile>
            </profiles>
          </settings>
      

      2) create pom.xml file

      <project>
        <modelVersion>4.0.0</modelVersion>
      
        <groupId>com.mycompany.app</groupId>
        <artifactId>my-app</artifactId>
        <version>1</version>
      
      
        <dependencies>
                <dependency>
                        <groupId> com.github.openshift-integration</groupId>
                        <artifactId>camel-k-example-event-streaming</artifactId>
                        <version>master-SNAPSHOT</version>
                </dependency>
        </dependencies>
      </project>
      

      3)

      ➜   mvn --version
      Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
      Maven home: /opt/apache-maven-3.6.3
      Java version: 11.0.1, vendor: Oracle Corporation, runtime: /usr/java/jdk-11.0.1
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "4.18.19-100.fc27.x86_64", arch: "amd64", family: "unix"
      
      
      
      ➜  mvn package -s /tmp/settings.xml
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ----------------------< com.mycompany.app:my-app >----------------------
      [INFO] Building my-app 1
      [INFO] --------------------------------[ jar ]---------------------------------
      Downloading from jitpack: https://jitpack.io/com/github/openshift-integration/camel-k-example-event-streaming/master-SNAPSHOT/maven-metadata.xml
      Downloaded from jitpack: https://jitpack.io/com/github/openshift-integration/camel-k-example-event-streaming/master-SNAPSHOT/maven-metadata.xml (421 B at 352 B/s)
      Downloading from jitpack: https://jitpack.io/com/github/openshift-integration/camel-k-example-event-streaming/master-374d90cf02-1/camel-k-example-event-streaming-master-374d90cf02-1.jar
      Downloaded from jitpack: https://jitpack.io/com/github/openshift-integration/camel-k-example-event-streaming/master-374d90cf02-1/camel-k-example-event-streaming-master-374d90cf02-1.jar (0 B at 0 B/s)
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ my-app ---
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /tmp/src/main/resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ my-app ---
      [INFO] No sources to compile
      [INFO] 
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ my-app ---
      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] skip non existing resourceDirectory /tmp/src/test/resources
      [INFO] 
      [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ my-app ---
      [INFO] No sources to compile
      [INFO] 
      [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ my-app ---
      [INFO] No tests to run.
      [INFO] 
      [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ my-app ---
      [WARNING] JAR will be empty - no content was marked for inclusion!
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  2.383 s
      [INFO] Finished at: 2020-10-19T11:48:37+02:00
      [INFO] ------------------------------------------------------------------------
      

              rhn-support-hbraun Heiko Braun
              jbouska@redhat.com Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: