无法在项目上执行goal org.codehaus.mojo:exec maven plugin:1.2.1:java(默认cli):执行java类时发生异常
当我在~/storm/examples/fyp storm try/目录下运行sudo mvn exec:java-D storm.topology=fyp-storm-try.src.jvm.topology时,我遇到了一个关于执行java类时发生异常的错误,如何解决这个问题无法在项目上执行goal org.codehaus.mojo:exec maven plugin:1.2.1:java(默认cli):执行java类时发生异常,java,maven,exec-maven-plugin,Java,Maven,Exec Maven Plugin,当我在~/storm/examples/fyp storm try/目录下运行sudo mvn exec:java-D storm.topology=fyp-storm-try.src.jvm.topology时,我遇到了一个关于执行java类时发生异常的错误,如何解决这个问题 [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] To
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.838s
[INFO] Finished at: Sun Apr 05 09:09:28 UTC 2015
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project fyp-storm-try: An exception occured while executing the Java class. fyp-storm-try.src.jvm.Topology -> [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
下面是我的pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>storm</artifactId>
<groupId>org.apache.storm</groupId>
<version>0.9.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<groupId>org.apache.storm</groupId>
<artifactId>fyp-storm-try</artifactId>
<packaging>jar</packaging>
<name>fyp-storm-try</name>
4.0.0
如果可能,使用-e
运行maven,并使用堆栈跟踪更新您的问题。考虑更新<代码> Excel Maven插件> />代码>配置和<代码>拓扑< /Cord>类。您也可以发布您的POM.xml文件吗?在发布MVN包和MVN编译之前,我使用MVN Cube安装-d SkIPStests= TRUE的可能副本。
<build>
<sourceDirectory>src/jvm</sourceDirectory>
<testSourceDirectory>test/jvm</testSourceDirectory>
<resources>
<resource>
<directory>${basedir}/multilang</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass />
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>