Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Trying to get maven plugin working with m2e

I'm having trouble getting m2e to invoke my maven code generating plugin[1].

I've rewritten it to use BuildContext per [2] and I set up the
lifecycle-mapping-metadata.xml [3].

With that, Eclipse complains about a demo project that includes the
plugin when I install a snapshot with syntax errors in the XML, so it
seems to be found, and I've got enough logging to see that m2e is
kicking off the maven-resources-plugin when a change a text file in
Eclipse, but my plugin doesn't seem to be invoked even though it works
fine from the command line.

[4] references a plugin.xml, "The follow extension in plugin.xml
registers ANTLR project configurator with m2e," but I can't find where
that's supposed to go.  I see [5] but I'm not writing an
eclipse-plugin -- just piggybacking off m2e.

Can someone take a look or is there a minimal project template that
shows how to integrate these things?  I trawled through the ANTLR4
plugin and found a lot of helpful stuff but haven't gotten things
wired up right yet.

thanks, mike


[1] - https://github.com/mikesamuel/closure-maven-plugin
[2] - https://www.eclipse.org/m2e/documentation/m2e-making-maven-plugins-compat.html
[3] - https://github.com/mikesamuel/closure-maven-plugin/blob/master/plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml
[4] - https://eclipse.org/m2e/documentation/m2e-extension-development.html
[5] - https://wiki.eclipse.org/FAQ_What_is_the_plug-in_manifest_file_(plugin.xml)%3F


Back to the top