I have entered required config into my pom.xml
to develop with ActiveJdbc
, which includes one dependency and one plugin.
Dependency went ok, while plugin caused error message from Eclipse:
Plugin execution not covered by lifecycle configuration
I am new to plugins, and understand neither the error message nor the provided quick fixes.
What do they mean?
UPDATE
If I wrap <plugins>
section into <pluginManagement>
tag, error disappears. But at the same time, instrumentation does not execute anymore.
Is it possible to both remove an error message and leave instrumentation performed in Eclipse?
This is an error raised by the new M2E plugin (starting with version 1.0) when it encounters a plugin that has no lifecycle mapping information, which explicitly tells M2E how to handle the plugin executions. Personally, I have no problem sticking to the old m2eclipse (version 0.12) most of the time as long as it builds everything fine.
Still, to remove this error, you may try adding the following lifecycle mapping metadata for the activejdbc-instrumentation
plugin to execute its goal:
...
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.javalite</groupId>
<artifactId>activejdbc-instrumentation</artifactId>
<versionRange>[1.4.9,)</versionRange>
<goals>
<goal>instrument</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.javalite</groupId>
...
See http://wiki.eclipse.org/M2E_plugin_execution_not_covered for more information about this error.