IBM Event Streams and IBM Event Automation

 View Only
  • 1.  mvn package error in HTTP Sink connector

    IBM Champion
    Posted Fri May 06, 2022 09:22 AM
    Hi,

    For adding HTTP Sink connector to my event streams, I have cloned the git repo as mentioned in the connector catalog.

    git clone https://github.com/thomaskwscott/kafka-connect-http.git
    cd kafka-connect-http
    mvn package

    when I run mvn package command inside kafka-connect-http folder, getting below error:

    [INFO] ------------------< uk.co.threefi:kafka-connect-http >------------------
    [INFO] Building kafka-connect-http 5.4.1
    [INFO] --------------------------------[ jar ]---------------------------------
    Downloading from central: https://repo.maven.apache.org/maven2/io/confluent/kafka-connect-maven-plugin/0.11.2/kafka-connect-maven-plugin-0.11.2.pom
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2.573 s
    [INFO] Finished at: 2022-05-06T18:44:32+05:30
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin io.confluent:kafka-connect-maven-plugin:0.11.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for io.confluent:kafka-connect-maven-plugin:jar:0.11.2: Could not transfer artifact io.confluent:kafka-connect-maven-plugin:pom:0.11.2 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/io/confluent/kafka-connect-maven-plugin/0.11.2/kafka-connect-maven-plugin-0.11.2.pom: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] PluginResolutionException

    Any suggestion on how to fix the issue?

    ------------------------------
    Thanks,
    Santhosh Ramanathan
    ------------------------------


  • 2.  RE: mvn package error in HTTP Sink connector

    Posted Thu May 19, 2022 09:06 AM
    Hi @Santhosh Ramanathan- thank you for you question!
    Here's what I was able to gather from the team:

    The error message indicates that you either don't have a truststore or the CA cert in the truststore doesn't match the server containing the mvn artifact. Try to turn off SSL checks in maven, or you need to ensure that you have the CA cert in your truststore configured in your maven settings.
    One other possibility: In certain versions of Java 8 there was a problem with the CA Certificates within the JVM. This was fixed in a later version of java 8. This link describes the problem:https://ibm.github.io/event-streams/troubleshooting/pkcs12-keystore-java-client/
    If you still require assistance, please raise a ticket.

    I hope this information helps!


    ------------------------------
    Jina K
    ------------------------------