Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse IDE support #19

Open
elzibubble opened this issue Jun 4, 2013 · 0 comments
Open

Eclipse IDE support #19

elzibubble opened this issue Jun 4, 2013 · 0 comments

Comments

@elzibubble
Copy link

When using this plugin in Eclipse with m2e, you get "Plugin execution not covered by lifecycle". This makes the plugin unusable in Eclipse; even if you add a custom lifecycle mapping, the plugin continually recompiles. Some small changes to the plugin will prevent this, allowing Eclipse devs to benefit from your work.

There is a good page here: http://wiki.eclipse.org/M2E_compatible_maven_plugins
which describes the steps necessary. Essentially:

  1. Add a small XML file
  2. Use BuildContext for file operations

You can see an example of the XML here: https://github.com/marceloverdijk/lesscss-maven-plugin/blob/master/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml

The page has some examples of using BuildContext, but here's a real example: https://github.com/marceloverdijk/lesscss-maven-plugin/blob/master/src/main/java/org/lesscss/mojo/CompileMojo.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant