我在pom.xml中得到一個錯誤,他說:org.codehaus.mojo不可見在Eclipse
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上使用Eclipse Indigo和Maven 3.0.3,使用JDK 1.6_22。
可能重複[如何解決「插件運行不屬於生命週期配置的」春數據的Maven構建(http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin) – 2012-02-13 17:01:46