无法执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:java

时间:2014-08-11 08:52:02

标签: java apache maven

我正在尝试执行一个Maven项目,但是当我这样做时,我得到了这个信息:

Caused by: org.apache.maven.plugin.MojoExecutionException: An exception occured while executing the Java class. null
at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java:352)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more

这是我的Mojo插件依赖:

<build>
<plugins>
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>exec-maven-plugin</artifactId>
    <version>1.2.1</version>
    <executions>
        <execution>
            <goals>
                <goal>java</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
      <mainClass>HiveClient</mainClass>
    </configuration>
</plugin>
</plugins>

我不知道我是否需要更多属性,你能帮助我吗?谢谢

0 个答案:

没有答案