2009-06-22 64 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