org.codehaus.mojo 在 Eclipse 中不可见

发布于 2025-01-04 17:48:25 字数 1187 浏览 5 评论 0原文

我的 pom.xml 中出现错误,内容如下:

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.4:add-source (execution: add-generated-sources, phase: process-sources)

这是我的 pom.xml 的摘录:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>build-helper-maven-plugin</artifactId>
    <executions>
      <execution>
        <id>add-generated-sources</id>
        <phase>process-sources</phase>
        <goals>
          <goal>add-source</goal>
        </goals>
        <configuration>
          <sources>
            <source>${project.build.directory}/generated-sources/entitygenerator</source>
            <source>${basedir}/src/main/groovy</source>
          </sources>
        </configuration>
      </execution>
    </executions>
</plugin>

错误位于 标记上。

现在,我正在努力寻找所需的 Eclipse 插件,但不知何故,我找不到它。你能帮忙吗?

我在 Windows XP SP3 上使用 Eclipse Indigo 和 Maven 3.0.3,以及 JDK 1.6_22。

I get an error in my pom.xml, saying:

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.4:add-source (execution: add-generated-sources, phase: process-sources)

Here is an extract of my pom.xml:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>build-helper-maven-plugin</artifactId>
    <executions>
      <execution>
        <id>add-generated-sources</id>
        <phase>process-sources</phase>
        <goals>
          <goal>add-source</goal>
        </goals>
        <configuration>
          <sources>
            <source>${project.build.directory}/generated-sources/entitygenerator</source>
            <source>${basedir}/src/main/groovy</source>
          </sources>
        </configuration>
      </execution>
    </executions>
</plugin>

The error is on the <execution> tag.

Now, I'm struggling to find the need Eclipse plugin, but somehow, I'm not able to find it. Can you help?

I'm using Eclipse Indigo and Maven 3.0.3, with a JDK 1.6_22, on a Windows XP SP3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

夏天碎花小短裙 2025-01-11 17:48:25

在问题视图中选择消息并按 Ctrl+1(或从上下文菜单中选择“快速修复”)。

这将使您可以选择忽略此插件。选择此选项,m2e 将向您的 POM 添加一些 XML,并且错误将会消失。

如果您明确调用该插件,该插件仍然可以工作!

有关详细信息,请参阅未涵盖 M2E 插件执行

Select the message in the problem view and press Ctrl+1 (or select "Quick fix" from the context menu).

That will give you the option to ignore this plugin. Select this and m2e will add some XML to your POM and the error will be gone.

The plugin will still work if you call it explicitly!

See M2E plugin execution not covered for details.

空城仅有旧梦在 2025-01-11 17:48:25

看来 build-helper m2e 连接器解决了这个问题: build-helper-maven-plugin

It seems like build-helper m2e connector fixes the issue: build-helper-maven-plugin

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