GMaven 插件错误
每当我执行 gmaven 插件时,我都会遇到以下问题
org.apache.maven.lifecycle.LifecycleExecutionException:插件管理器执行目标“org.codehaus.groovy.maven:gmaven-plugin:1.0-rc-5:generateStubs”时发生内部错误:Mojo执行失败。
我的 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>
Whenever I execute the gmaven plugin, I get the following problem
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.
The relevant section of my POM is below. Any thoughts why?
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,它与我的 groovy 库和 gmaven 版本不匹配。 我清除了本地存储库并更新到最新版本。 现在一切都恢复正常了。
It turned out to be a mismatch with my groovy libraries and gmaven versions. I cleared out my local repository and updated to the latest versions. Now all is back to normal.
您确定 POM 不存在格式问题(无论是在本节中还是在 POM 的其他部分中)?
请参阅此错误了解更多详细信息,也此处报告。
Are you sure there is no formatting issue with the POM (either in this section or in another section of your POM)?
See this bug for more details, also reported here.