I am a newbie to maven and I trying to run strom kafka TestTopology spout, but the pom file is not provided in storm-kafka contrib under storm-kafka spout. I used Lein and it did not work either. I also tried to make a pom myself using lein pom (and modifying it)and it did not work either. I am building the project from top down: I run mvn in the storm-conrib-master and it builds successfully the higher level but how can I run the TestTopology.java using the m2-pom from storm starter { with minor changes} I use this:
mvn -f m2-pom.xml compile exec:java -Dexec.classpathScope=compile -Dexec.mainClass=storm.kafka.TestTopology
I also used project.clj settings and lein and it did not work either but lein is not my thing. Here is the Maven settings:
Apache Maven 3.0.4 Maven home: /usr/share/maven Java version:
1.6.0_33, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-sun-1.6.0.33/jre Default locale: en_US, platform
encoding: UTF-8 OS name: "linux", version: "3.2.0-32-generic", arch: "amd64", family: "unix"
How should I run TestTopology.java?
I am getting a compilation error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project storm-kafka: Compilation failure: Compilation failure: [ERROR] Desktop/storm-contrib-master/storm-kafka/src/jvm/storm/kafka/trident/StaticBrokerReader.java:[13,7] generics are not supported in -source 1.3 [ERROR] (use -source 5 or higher to enable generics) [ERROR] Map brokers = new HashMap(); [ERROR]