Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

org.codehaus.mojo not visible in Eclipse

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.

like image 289
Alexis Dufrenoy Avatar asked Jan 29 '26 13:01

Alexis Dufrenoy


1 Answers

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.

like image 169
Aaron Digulla Avatar answered Feb 01 '26 02:02

Aaron Digulla