GMaven 插件错误

发布于 2024-07-24 23:57:37 字数 1550 浏览 2 评论 0原文

每当我执行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情未る 2024-07-31 23:57:38

事实证明,它与我的 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.

天荒地未老 2024-07-31 23:57:38

您确定 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文