[
https://jira.codehaus.org/browse/MOJO-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287977#comment-287977
]
Christopher Hunt commented on MOJO-1785:
----------------------------------------
You shouldn't need the runOnConfiguration as I believe the incremental gets
invoked during import anyhow. Please test though.
Testing with m2e 1.1 is fairly straightforward. You just require their update
site (which is a little hidden):
http://download.eclipse.org/technology/m2e/milestones/1.1
> lesscss-maven-plugin: provide m2e lifecycle-mapping
> ---------------------------------------------------
>
> Key: MOJO-1785
> URL: https://jira.codehaus.org/browse/MOJO-1785
> Project: Mojo
> Issue Type: New Feature
> Components: _General
> Environment: Eclipse
> Reporter: Alexis Li
> Assignee: Marcel Overdijk
> Attachments: lesscss-maven-plugin.zip, mojo1785-1.patch,
> mojo1785-2.patch, mojo1785.patch
>
>
> I use m2e to use Maven within Eclipse. This requires a little special support
> from plugins so that incremental build works properly. I'd like the
> lesscss-maven-plugin to add this support.
> The necessary changes are best documented here:
> http://wiki.eclipse.org/M2E_compatible_maven_plugins
> In short, META-INF/m2e/lifecycle-mapping-metadata.xml needs to be added and
> the plexus-build-api BuildContext used.
> I've attached some modifications which should get most of the way there,
> however I can't figure out how to fix the Mockito or integration tests sorry.
> Eclipse complains that "when( buildContext.newScanner( sourceDirectory )
> ).thenReturn( ... )" is ambiguous and it's not clear how to fix it. I tried
> some of the PowerMock extensions but they didn't work.
> If I ignore tests (and comment out the IT maven-invoker-plugin section) I can
> build a JAR but then when I try to use it my <execution> element complains
> with this error:
> Execution default of goal org.codehaus.mojo:lesscss-maven-plugin:
> 1.0-act-SNAPSHOT:compile failed. (org.codehaus.mojo:lesscss-
> maven-plugin:1.0-act-SNAPSHOT:compile:default:prepare-
> package)
> I don't know if this is relevant but generate-resources might be a more
> appropriate phase.
> To be clear, this feature is to add m2e support to lesscss-maven-plugin; the
> issues I describe above are solely by way of apology for not finishing the
> job.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email