Re: How to run Kafka Producer in Java environment? How to set mainClass in pom file in EC2 instance?

2015-01-20 Thread Ewen Cheslack-Postava
You should only need jar.with.dependencies.jar -- maven-assembly-plugin's jar-with-dependencies mode collects all your code and project dependencies into one jar file. It looks like the problem is that your mainclass is set to only 'HelloKafkaProducer'. You need to specify the full name

Re: How to run Kafka Producer in Java environment? How to set mainClass in pom file in EC2 instance?

2015-01-20 Thread Su She
Hello Ewen, Thanks for the response. I am running this on an EC2 instance, instead of com.spnotes...i tried the path like home.ec2-user...HelloKafkaProducer, but that did not work. Update/Edit: Fixed it...I had to move my java file to src/main/java and then do the mvn clean install. It seemed