首页 > 代码库 > maven执行main函数
maven执行main函数
You’re ready to run your first topology! If you create a file at src/main/resources/
words.txt with one word per line, you can run the topology with this command:
mvn exec:java -Dexec.mainClass="TopologyMain" -Dexec.args="src/main/resources/
words.txt"
For example, if you use the following words.txt file:
Storm
test
are
great
is
an
Storm
simple
application
but
very
powerful
really
Storm
is
great
In the logs, you should see something like the following:
is: 2
application: 1
but: 1
great: 1
test: 1
simple: 1
Storm: 3
really: 1
are: 1
great: 1
an: 1
powerful:
maven执行main函数
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。