jerrinot opened a new issue #9: The camel-kafka-connector artifacts pulls 
number of dependencies
URL: https://github.com/apache/camel-kafka-connector/issues/9
 
 
   I am trying to use this project to 
[integrate](https://github.com/hazelcast/hazelcast-jet-contrib/pull/30) with 
Hazelcast Jet. It works pretty nicely, well done!
   ```java
   public final class KafkaConnectTest {
       private static final String BROKER_URL = "tcp://10.0.0.113";
       private static final String TOPIC = "test";
   
       public static void main(String[] args) {
           JetInstance jet = Jet.newJetInstance();
   
           Pipeline pipeline = Pipeline.create();
           pipeline.readFrom(KafkaConnectSources.connect(kafkaConnectProps()))
                   .withoutTimestamps()
                   .map(record -> new String((byte[])record.value()))
                   .writeTo(Sinks.logger());
   
           JobConfig jobConfig = new JobConfig();
           Job job = jet.newJob(pipeline, jobConfig);
           job.join();
       }
   
       private static Properties kafkaConnectProps() {
           Properties properties = new Properties();
           properties.setProperty("name", "camel-source-connector");
           properties.setProperty("connector.class", 
"org.apache.camel.kafkaconnector.CamelSourceConnector");
           properties.setProperty("camel.source.url", "paho:" + TOPIC + 
"?brokerUrl=" + BROKER_URL);
           return properties;
       }
   }
   ```
   There is one thing I don't quite understand: The main artifact 
(camel-kafka-connector) pulls a [number of 
dependencies](https://github.com/apache/camel-kafka-connector/blob/87cc89fadfeb22ec146cdcc1410f055f67384e05/core/pom.xml#L48-L83)
 which I don't need and I have to manually exclude. Is there any reason for 
this? 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to