2009-06-22 80 views
5

每当我执行gmaven插件,我得到以下问题错误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> 

回答

3

原来我的groovy库和gmaven版本不匹配。我清除了我的本地存储库并更新到最新版本。现在一切恢复正常。

+1

这足以去除org/codehaus/groovy和org/codehaus/gmaven目录。 – kopper 2010-09-22 09:27:04

0

您确定POM没有格式化问题(在本节或您的POM的另一节中)?
有关更多详细信息,请参见this bug,还有reported here

+0

是的,检查出来。 – 2009-06-22 19:13:34