I also get m2e errors - the antrun plugin is "not covered by lifecycle
configuration"
You can fix that by using the QuickFix suggestion and ignoring that
goal. That just means if you want that goal to run, you have to use
the command line maven [1]. Below is a diff to apply that fix to ARQ.
I've been debating checking this in for all the projects, as it will
only affect those running m2e.
The alternative is to not need antrun -- it exists only to get the
timestamp in the way that used to be recommended.
Maven now has property:
maven.build.timestamp
which takes a format. Just the XSD format is sufficient.
<maven.build.timestamp.format
>yyyy-MM-dd'T'HH:mm:ssZ</maven.build.timestamp.format>
Andy
-Stephen
[1] m2e requires a "Lifecycle Mapping" be created for each Maven
plugin that you want to use. This enforces that the plugin is working
with Eclipse resources instead of directly with file handles. This is
necessary for the plugin to play well with incremental compilation
among other things. "Ignore" works well when it's not something that
needs to be run a lot, and you can therefore do it manually if it is
needed. The other option is "Execute", but that apparently is tricky.
A bunch of info at [2].
[2] http://wiki.eclipse.org/M2E_plugin_execution_not_covered
Index: pom.xml
===================================================================
--- pom.xml (revision 1305481)
+++ pom.xml (working copy)
@@ -258,6 +258,39 @@
-->
</plugins>
+<pluginManagement>
+ <plugins>
+ <!--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.6,)</versionRange>
+ <goals>
+
<goal>run</goal>
+ </goals>
+ </pluginExecutionFilter>
+ <action>
+
<ignore></ignore>
+ </action>
+ </pluginExecution>
+ </pluginExecutions>
+ </lifecycleMappingMetadata>
+ </configuration>
+ </plugin>
+ </plugins>
+</pluginManagement>
</build>
<reporting>