Skip to content

Instantly share code, notes, and snippets.

@fbricon
Created September 8, 2016 17:27
Show Gist options
  • Save fbricon/630984f0a51090808c3e505500a2495c to your computer and use it in GitHub Desktop.
Save fbricon/630984f0a51090808c3e505500a2495c to your computer and use it in GitHub Desktop.
lifecycle-mapping-metadata.xml for che projects in Eclipse
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.google.code.sortpom</groupId>
<artifactId>maven-sortpom-plugin</artifactId>
<versionRange>[2.3.0,)</versionRange>
<goals>
<goal>verify</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnConfiguration>true</runOnConfiguration>
<runOnIncremental>false</runOnIncremental>
</execute>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-api-dto-maven-plugin</artifactId>
<versionRange>5.0.0-M1-SNAPSHOT</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnConfiguration>true</runOnConfiguration>
<runOnIncremental>false</runOnIncremental>
</execute>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
<parameters>
<compilerId>javac-with-errorprone</compilerId>
</parameters>
</pluginExecutionFilter>
<action>
<configurator>
<id>org.eclipse.m2e.jdt.javaConfigurator</id>
</configurator>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
@fbricon
Copy link
Author

fbricon commented Sep 8, 2016

1- Eclipse preferences > Maven > Lifecycle Mappings > Open workspace lifecycle mapping metadata
2- paste xml, save file
3- Hit reload button
4- update maven project configurations

Note that running che-core-api-dto-maven-plugin is very expensive. It'll happen on full builds only and requests to update project configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment