Hi Igor,

Thank you for your reply. It does not at present, although I've raised 
http://jira.codehaus.org/browse/MOJO-1785 to ask them to do so.
As it happens I think it might be ok, I hacked together a new version including 
a lifecycle-mapping-metadata.xml and although it failed to notify the workspace 
about the new file, it ran successfully, quickly and without causing an endless 
loop.

With this result in hand, I'd like to at least try running lesscss during 
incremental build using a pluginExecutionFilter; if it doesn't work out, too 
bad. At present the config I provided seems to do nothing.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Igor Fedorenko
Sent: 28 November 2011 14:33
To: [email protected]
Subject: Re: [m2e-users] lifecycle-mapping for lesscss-maven-plugin

Does lesscss-maven-plugin use plexus-build-api to communicate changes to/from 
the workspace? If not, you almost certainly do not want to run 
lesscss-maven-plugin during incremental build. It will cause significant build 
performance issues (the plugin will be executed on all resource
changes) and may will like cause endless builds too.

--
Regards,
Igor

On 11-11-28 8:02 AM, Alexis Lee wrote:
> Hello list,
>
> I'm trying to get the lesscss-maven-plugin to run on incremental build.
> I experimented with modifying the plugin but hit some snags; also this 
> requires m2e 1.1 which is not yet released. I understand I can get a 
> similar effect with m2e 1.0 by adding config to my project's pom.xml, 
> which I have done:
>
> <plugin>
>
> <groupId>org.eclipse.m2e</groupId>
>
> <artifactId>_lifecycle_-mapping</artifactId>
>
> <version>1.0.0</version>
>
> <configuration>
>
> <lifecycleMappingMetadata>
>
> <pluginExecutions>
>
> <pluginExecution>
>
> <pluginExecutionFilter>
>
> <groupId>org.codehaus.mojo</groupId>
>
> <artifactId>lesscss-maven-plugin</artifactId>
>
> <versionRange>[1.0-beta-1,)</versionRange>
>
> <goals>
>
> <goal>compile</goal>
>
> </goals>
>
> </pluginExecutionFilter>
>
> <action>
>
> <execute>
>
> <runOnIncremental>true</runOnIncremental>
>
> </execute>
>
> </action>
>
> </pluginExecution>
>
> </pluginExecutions>
>
> </lifecycleMappingMetadata>
>
> </configuration>
>
> </plugin>
>
> Unfortunately this does not seem to work. Here's the plugin 
> configuration I'm using:
>
> <plugin>
>
> <groupId>org.codehaus.mojo</groupId>
>
> <artifactId>_lesscss_-_maven_-_plugin_</artifactId>
>
> <version>1.0-beta-1</version>
>
> <executions>
>
> <execution>
>
> <phase>prepare-package</phase>
>
> <goals>
>
> <goal>compile</goal>
>
> </goals>
>
> </execution>
>
> </executions>
>
> <configuration>
>
> <!-- No m2e connector for _lesscss_ yet, working around by writing to 
> source _dir_ -->
>
> <!-- Changes to .less won't be seen until after a _maven_ build -->
>
> <sourceDirectory>${project.basedir}/WebContent</sourceDirectory>
>
> <outputDirectory>${project.basedir}/WebContent</outputDirectory>
>
> <!--
> <outputDirectory>${project.build.directory}/${project.build.finalName}
> </outputDirectory>
> -->
>
> <compress>true</compress>
>
> </configuration>
>
> </plugin>
>
> Please could anyone help me?
>
> Thanks in advance,
>
> Alexis
>
>
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

________________________________________________________________________
This e-mail has been scanned for all viruses.
________________________________________________________________________
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to