我的 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>
错误在<execution>
标签上。
现在,我正在努力寻找需要的 Eclipse 插件,但不知何故,我找不到它。你能帮我吗?
我在 Windows XP SP3 上使用带有 JDK 1.6_22 的 Eclipse Indigo 和 Maven 3.0.3。