gpt4 book ai didi

java - 使用Maven构建storm-starter

转载 作者:行者123 更新时间:2023-12-01 22:57:08 25 4
gpt4 key购买 nike

我按照storm-starter中的步骤进行操作,并尝试使用命令“mvncompileexec:java -Dstorm.topology=storm.starter.WordCountTopology”从storm-starter构建一个项目。但出现了以下错误。谁能告诉我为什么会发生这种情况以及我需要做什么来解决这个问题?

[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

最佳答案

我也遇到了同样的问题。经过一番尝试和错误后,这行得通:

mvn -X compile exec:java -Dstorm.topology=storm.starter.WordCountTopology -Dexec.mainClass="WordCountTopology"

关于java - 使用Maven构建storm-starter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23874328/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com