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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With