运行时
mvn install
storm-starter / pom.xml 上的,这些是显示的前几个错误:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/ubuntu/incubator-storm-master/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSampleSpout.java:[23,22] package twitter4j.conf does not exist
[ERROR] /home/ubuntu/incubator-storm-master/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSampleSpout.java:[24,17] package twitter4j does not exist
[ERROR] /home/ubuntu/incubator-storm-master/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSampleSpout.java:[25,17] package twitter4j does not exist
[ERROR] /home/ubuntu/incubator-storm-master/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSampleSpout.java:[35,17] package twitter4j does not exist
我会认为它会被列为依赖项。解决这个问题的正确方法是什么?我已经看过twitter4j网站了,并没有找到一个简洁的设置程序,因为它与maven构建文件有关。此外,是运行此示例所需的twitter dev帐户吗?谢谢!
答案 0 :(得分:0)
在Storm-starter项目中,twitter4j依赖项评论如下:
(defproject storm-starter "0.0.1-SNAPSHOT"
:source-paths ["src/clj"]
:java-source-paths ["src/jvm"]
:test-paths ["test/jvm"]
:resource-paths ["multilang"]
:aot :all
:repositories {
;; "twitter4j" "http://twitter4j.org/maven2"
}
:dependencies [
;; [org.twitter4j/twitter4j-core "2.2.6-SNAPSHOT"]
;; [org.twitter4j/twitter4j-stream "2.2.6-SNAPSHOT"]
[commons-collections/commons-collections "3.2.1"]
]
// remaining code........
取消注释并检查。它应该解决错误。