While trying to learn how to use storm. I decided to compile my own instance of the well known WordCount Topology to see how it is done. The code is 100% identical to the example's one. (https://github.com/apache/storm/blob/master/examples/storm-starter/src/jvm/org/apache/storm/starter/WordCountTopology.java)
However whenever I try to run the jar I get the error saying I could not find or load the main class. I can run the default example jar that comes bundled with storm with no problems (like in bellow), so it shouldn't be a calling syntax problem.
bin/storm jar lib/"name".jar "classpath"
Maven creates the jar with no problem, initially I assumed I wasn't excluding the storm dependency properly in the pom file but It should be like this, right?
<dependencies>
<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
This is perhaps is a vague question, but to be honest not sure where to tackle it since the code is the same, so generating a successful jar shouldn't be an issue, right?