我遵循StormStarter中的步骤,并尝试使用命令“mvncomile”从StormStarter构建一个项目exec:java -dstorm.topology=storm.starter.wordcounttopology". 但给出了以下错误。有人能告诉我为什么会这样吗?我需要做些什么来解决这个问题?
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.017 s
[INFO] Finished at: 2014-05-26T11:23:54-06:00
[INFO] Final Memory: 20M/159M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3:java (default-cli) on project storm: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.3:java are missing or invalid -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException
3条答案
按热度按时间j2datikz1#
你需要像这样运行它:
在用法页中阅读更多信息
gmol16392#
我也遇到了同样的问题,解决起来很简单:在执行stormstarter教程中给出的mvn命令之前,必须转到stormstarter目录。
kpbpu0083#
我也有同样的问题。经过一番反复试验后,这个办法奏效了: