Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13839

Example connectors Maven artifact should use provided dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • connect
    • None

    Description

      The connect-file artifact which contains the sample FileStreamSourceConnector and FileStreamSourceConnector connectors has currently 2 Maven dependencies:

      • connect-api
      • slf4j

      Both are marked as runtime dependencies. So when the connectors are pulled from Maven repository to be added to the plugin path, they pull with them also these dependencies and other transitive dependencies (such as kafka-clients). This seems unnecessary since all these dependencies are already in the classpath of Kafka itself and do not need to be there again in the plugin path. They should be configured as provided so that they are not downloaded with the connectors.

      This is now more relevant after https://issues.apache.org/jira/browse/KAFKA-13748, when the connectors are not anymore on the main classpath and downloading them from Maven to the plugin path would be more common.

      Attachments

        Activity

          People

            Unassigned Unassigned
            scholzj Jakub Scholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: