[ 
https://jira.codehaus.org/browse/MOJO-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284695#comment-284695
 ] 

Christopher Hunt commented on MOJO-1785:
----------------------------------------

Are you using a pre-release of 1.1? Does it work for that?

> 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
>         Attachments: lesscss-maven-plugin.zip, mojo1785-1.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.
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


Reply via email to