Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

object kafka is not a member of package org.apache

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-filea few times already with any success.

EDIT: This might help enter image description here

like image 747
TheM00s3 Avatar asked May 27 '16 01:05

TheM00s3


1 Answers

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.

like image 195
TheM00s3 Avatar answered Sep 27 '22 17:09

TheM00s3