Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>

在用maven命令启动storm时候,命令行是:mvn exec:java -Dexec.mainClass=”TopologyMain” -Dexec.args=”src/main/resources/words.txt

结果报了如上的错误信息,把mvn去掉即可。

 

之后运行出现

maven install 读取jar包时出错;error in opening zip file

 另外注意 后面的命令,是中文,去掉""

解决:
将错误jar包删除,然后重新install即可
 
 

 

posted @ 2016-11-23 18:29  Doyourself!  阅读(1537)  评论(0编辑  收藏  举报