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

Unable to download jira client dependency with productized build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • camel-k-future
    • 2021-M3, 2021-M2
    • Camel-K
    • None
    • False
    • False
    • % %
    • Todo
    • Undefined
    • Hide

      You can workund this problem by adding the atlassian repo manually:

      apiVersion: camel.apache.org/v1    
      kind: IntegrationPlatform    
      metadata:    
        labels:    
          app: camel-k    
        name: camel-k    
      spec:    
        configuration:    
        - type: repository    
          value: <atlassian repo here>
      
      
      Show
      You can workund this problem by adding the atlassian repo manually: apiVersion: camel.apache.org/v1 kind: IntegrationPlatform metadata: labels: app: camel-k name: camel-k spec: configuration: - type: repository value: <atlassian repo here>

    Description

      When using the officially released camel-k operator from RH, the integration is unable to find dependencies for jira client

      integration:

      package com.test;    
          
      import java.lang.Exception;    
      import java.lang.Override;    
      import org.apache.camel.builder.RouteBuilder;    
          
      public class MyRouteBuilder extends RouteBuilder {    
        @Override    
        public void configure() throws Exception {    
          from("jira://newIssues?jiraUrl=https://jiraurl.com&username=user&password=password&jql=project=PROJECT").log("${body}");    
        }    
      }
      
      kamel run MyRouteBuilder.java
      
      ...
      [INFO] Downloading from redhat.ga: https://maven.repository.redhat.com/ga/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.pom
      [INFO] Downloading from redhat.ea: https://maven.repository.redhat.com/earlyaccess/all/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.pom
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.pom
      [WARNING] The POM for com.atlassian.jira:jira-rest-java-client-api:jar:5.2.1 is missing, no dependency information available
      [INFO] Downloading from redhat.ga: https://maven.repository.redhat.com/ga/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.pom
      [INFO] Downloading from redhat.ea: https://maven.repository.redhat.com/earlyaccess/all/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.pom
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.pom
      [WARNING] The POM for com.atlassian.jira:jira-rest-java-client-core:jar:5.2.1 is missing, no dependency information available
      ...
      [INFO] Downloading from redhat.ga: https://maven.repository.redhat.com/ga/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.jar
      [INFO] Downloading from redhat.ga: https://maven.repository.redhat.com/ga/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.jar
      [INFO] Downloading from redhat.ea: https://maven.repository.redhat.com/earlyaccess/all/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.jar
      [INFO] Downloading from redhat.ea: https://maven.repository.redhat.com/earlyaccess/all/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.jar
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.jar
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.jar
      ...
      [INFO] ---------< org.apache.camel.k.integration:camel-k-integration >---------
      [INFO] Building camel-k-integration 1.3.0
      [INFO] --------------------------------[ jar ]---------------------------------
      [WARNING] The POM for com.atlassian.jira:jira-rest-java-client-api:jar:5.2.1 is missing, no dependency information available
      [WARNING] The POM for com.atlassian.jira:jira-rest-java-client-core:jar:5.2.1 is missing, no dependency information available
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  0.624 s
      [INFO] Finished at: 2021-05-18T08:07:48Z
      [INFO] ------------------------------------------------------------------------
      [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.3.0: The following artifacts could not be resolved: com.atlassian.jira:jira-rest-java-client-api:jar:5.2.1, com.atlassian.jira:jira-rest-java-client-core:jar:5.2.1: Failure to find com.atlassian.jira:jira-rest-java-client-api:jar:5.2.1 in https://maven.repository.redhat.com/ga was cached in the local repository, resolution will not be reattempted until the update interval of redhat.ga has elapsed or updates are forced -> [Help 1]
      

      this is the default maven configuration with productized build:

          <?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>
                </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>
                </pluginRepositories>
              </profile>
            </profiles>
          </settings>
      

      this works ok on community version:

      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.pom
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.pom
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.pom (3.1 kB at 11 kB/s)
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/jira/jira-rest-java-client-parent/5.2.1/jira-rest-java-client-parent-5.2.1.pom
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-parent/5.2.1/jira-rest-java-client-parent-5.2.1.pom
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-parent/5.2.1/jira-rest-java-client-parent-5.2.1.pom (9.2 kB at 35 kB/s)
      [INFO] Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.pom
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.pom
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.pom (3.2 kB at 13 kB/s)
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.jar
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-api/2.0.0/atlassian-httpclient-api-2.0.0.jar
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/sal/sal-api/3.0.7/sal-api-3.0.7.jar
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/event/atlassian-event/3.0.0/atlassian-event-3.0.0.jar
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.jar
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-api/5.2.1/jira-rest-java-client-api-5.2.1.jar (165 kB at 504 kB/s)
      [INFO] Downloading from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-library/2.0.0/atlassian-httpclient-library-2.0.0.jar
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-api/2.0.0/atlassian-httpclient-api-2.0.0.jar (52 kB at 148 kB/s)
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/event/atlassian-event/3.0.0/atlassian-event-3.0.0.jar (50 kB at 140 kB/s)
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/jira/jira-rest-java-client-core/5.2.1/jira-rest-java-client-core-5.2.1.jar (203 kB at 534 kB/s)
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/sal/sal-api/3.0.7/sal-api-3.0.7.jar (73 kB at 184 kB/s)
      [INFO] Downloaded from atlassian: https://packages.atlassian.com/maven-external/com/atlassian/httpclient/atlassian-httpclient-library/2.0.0/atlassian-httpclient-library-2.0.0.jar (97 kB at 147 kB/s)
      

      upstream maven configuration:

          <?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>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>
                </repositories>
                <pluginRepositories>
                  <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>
                </pluginRepositories>
              </profile>
            </profiles>
          </settings>
      

      Attachments

        1. atlassian.log
          493 kB
        2. mrrc-indy-build.log
          201 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              avano@redhat.com Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: