[
https://jira.codehaus.org/browse/MOJO-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=284681#comment-284681
]
Alexis Li commented on MOJO-1785:
---------------------------------
Hi Chris, my apologies. I should have said that this is in anticipation of m2e
1.1.
I think that page is describing building an Eclipse plugin to act as an m2e
extension. If you can figure out how to do that and want to do it, that'd
certainly help in the short term.
The only change I made to the pom.xml was to add a new dependency on
org.sonatype.plexus:plexus-build-api:0.0.7. I'll attach a new patch.
> 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