Fork me on GitHub

Integrated Development Environment

How to enable split on incremental builds in the Eclipse IDE?

M2Eclipse is an Eclipse plugin which provides tight integration for Maven. It determines how and when plugins should be executed. Each plugin can store lifecycle mapping metadata with data on which it based its decision (see M2E compatible maven plugins). By default this plugin is only called on full builds. If you want to enable automatic split, then you need to add the following entry to your pom.xml:

<pluginManagement>
   <plugins>
      <plugin>
         <groupId>org.eclipse.m2e</groupId>
         <artifactId>lifecycle-mapping</artifactId>
         <version>1.0.0</version>
         <configuration>
            <lifecycleMappingMetadata>
               <pluginExecutions>
                  <pluginExecution>
                     <pluginExecutionFilter>
                        <groupId>biz.gabrys.maven.plugins</groupId>
                        <artifactId>css-splitter-maven-plugin</artifactId>
                        <versionRange>[0,)</versionRange>
                        <goals>
                           <goal>split</goal>
                        </goals>
                     </pluginExecutionFilter>
                     <action>
                        <execute>
                           <runOnIncremental>true</runOnIncremental>
                           <runOnConfiguration>true</runOnConfiguration>
                        </execute>
                     </action>
                  </pluginExecution>
               </pluginExecutions>
            </lifecycleMappingMetadata>
         </configuration>
      </plugin>
   </plugins>
</pluginManagement>

[top]