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

Reply via email to