I am using eclipse 3.7.1, with m2eclipse 1.0.1. I have followed this guide to create a maven-plugin:
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html In another maven project I test this plugin using: <build> <plugins> <plugin> <groupId>sample.plugin</groupId> <artifactId>hello-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> <executions> <execution> <phase>compile</phase> <goals> <goal>touch</goal> </goals> </execution> </executions> </plugin> </plugins> </build> But inside eclipse I get the error: Plugin execution not covered by lifecycle configuration: sample.plugin:hello-maven-plugin:1.0-SNAPSHOT:touch (execution: default, phase: compile) This problem has been covered here: http://wiki.eclipse.org/M2E_plugin_execution_not_covered If I change the phase to "package" it works. But what are the recommended practices when writing maven plugins and some steps needs to be executed during the compile phase? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
