When importing the java drivers into my scala project, Im hit with the following message on compilation: object kafka is not a member of package org.apache
. Here are how my import statements are setup:
import org.apache.kafka.clients.producer.{Callback, KafkaProducer, ProducerRecord, RecordMetadata}
import org.apache.kafka.common.serialization.Serializer
I've tried running activator clean
and activator clean-file
a few times already with any success.
EDIT: This might help
As it turns out, a major gotcha of SBT and Activator for that matter is that it doesn't update automatically if new files are added. As such the solution for me was to call reload
in the activator console I have running for continuously running tests as I develop.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With