我从http://mirror.symnds.com/software/Apache/storm/apache-storm-0.9.3/apache-storm-0.9.3.tar.gz
获取了我的Apache Storm我从未修改/ home / user / storm / examples / storm-starter /目录中的任何内容。
当我运行此命令时
mvn exec:java -D storm.topology=storm.starter.WordCountTopology
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project storm-starter: An exception occured while executing the Java class. java.lang.InterruptedException -> [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/MojoExecutionException
MojoExecutionException - Apache Maven - Apache Software Foundation
cwiki.apache.org
任何人都知道这是什么问题&怎么解决? 我希望能为我提供一个细节解决方案,因为我是一个新手。谢谢。
答案 0 :(得分:1)
试试这个
转到pom.xml文件所在的路径并运行此命令
mvn -e -f pom.xml compile exec:java -D storm.topology=storm.starter.WordCountTopology
尝试将此添加到您的pom.xml并运行上面的命令。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>true</includePluginDependencies>
<classpathScope>compile</classpathScope>
<mainClass>${storm.topology}</mainClass>
</configuration>
</plugin>