Fix build in m2eclipse 1.0
In version 1.0 of the eclipse maven plugin m2eclipse the project build
lifecycle is checked more strictly in order to avoid concurrency issues
[1]. Therefore the build failed. This commit fixes it by ignoring the
antrun and the build-helper-maven-plugin tasks in m2eclipse. This allows
for working in eclipse with m2eclipse 1.0 and does not harm the maven
build on the comand line.
[1] http://wiki.eclipse.org/M2E_plugin_execution_not_covered
Change-Id: Ic8324920e14b3b41b27e63b1820cf9d86e512a6a
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
diff --git a/pom.xml b/pom.xml
index b8948f8..5fdbd23 100644
--- a/pom.xml
+++ b/pom.xml
@@ -369,6 +369,46 @@
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.5</version>
</plugin>
+
+ <!--This plugin's configuration is used to store Eclipse
+ m2e settings only. It has no influence on the Maven build itself. -->
+ <plugin>
+ <groupId>org.eclipse.m2e</groupId>
+ <artifactId>lifecycle-mapping</artifactId>
+ <version>1.0.0</version>
+ <configuration>
+ <lifecycleMappingMetadata>
+ <pluginExecutions>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <versionRange>[1.0,)</versionRange>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore/>
+ </action>
+ </pluginExecution>
+ <pluginExecution>
+ <pluginExecutionFilter>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <versionRange>[1.0,)</versionRange>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+ <ignore/>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>