It is certainly possible to run custom maven plugins during eclipse workspace.
According to the wiki page you reference, m2e-compatible plugins must use BuildContext API and must include META-INF/m2e/lifecycle-mapping-metadata.xml. Your plugin does not appear to do either. -- Regards, Igor On 2015-01-25 16:37, Alexandre Araujo Moreira wrote:
Hello, everybody. I've been trying my hand at writing simple plugins for Maven and so far haven't had any problem running them on the mvn command line. When trying to use these same plugins on eclipse (Luna, under m2e) I've been completely lost. I tried following instructions on[1] to no avail. In the end I decided to try asking for help here -- and I hope it's the right place. First, I need to know if it is at all possible to have a custom plugin be ran by m2e when the eclipse auto-build feature kicks in, or while publishing a project to a development server (under Eclipse's "Servers" view). If any of these are possible, I'd really appreciate some help in figuring out how to make it happen. I've set up two minimal projects which are, respectively, a simple timestamp-file generating maven plugin[2] and a dummy project which declares this plugin on its pom[3] on github, which we can use as a common ground on discussing this if discussion is warranted. I use those on the command line and everything's fine. Thanks, Alexandre Moreira [1]: https://wiki.eclipse.org/M2E_compatible_maven_plugins [2]: https://github.com/alexandream/timestamp-maven-plugin [3]: https://github.com/alexandream/timestamp-maven-plugin-sandbox _______________________________________________ m2e-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users
