GMaven插件出错

时间:2009-06-22 17:53:27

标签: eclipse maven-2 groovy maven-plugin gmaven-plugin

每当我执行gmaven插件时,我都会遇到以下问题

  

org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:generateStubs': Mojo execution failed.

我的POM的相关部分如下。有什么想法吗?

<plugin>
    <groupId>org.codehaus.groovy.maven</groupId>
    <artifactId>gmaven-plugin</artifactId>
    <version>1.0-rc-5</version>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
                <goal>compile</goal>
                <goal>generateTestStubs</goal>
                <goal>testCompile</goal>
            </goals>
            <configuration>
                <sources>
                    <fileset>
                        <directory>${project.build.sourceDirectory}</directory>
                        <includes>
                            <include>**/*.groovy</include>
                        </includes>
                        <directory>${project.build.testDirectory}</directory>
                        <includes>
                            <include>**/*.groovy</include>
                        </includes>
                    </fileset>
                </sources>
            </configuration>
        </execution>
    </executions>
</plugin>

2 个答案:

答案 0 :(得分:3)

事实证明这与我的groovy库和gmaven版本不匹配。我清除了我的本地存储库并更新到最新版本。现在一切都恢复正常了。

答案 1 :(得分:0)

您确定POM没有格式化问题(在此部分或POM的其他部分)?
有关详细信息,请参阅this bugreported here