码迷,mamicode.com
首页 > 其他好文 > 详细

maven执行main函数

时间:2014-09-24 13:00:17      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:following   command   something   create   example   

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函数

标签:following   command   something   create   example   

原文地址:http://smilezhuolin.blog.51cto.com/7671611/1557577

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!