For completeness, the mentioned function was implemented in maven-antrun-plugin in October 2010.
The configuration parameter you are looking for is exportAntProperties .
Usage example:
<plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.7-SNAPSHOT</version> <executions> <execution> <phase>process-resources</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <exec outputproperty="svnversion" executable="svnversion"> <arg value=".." /> </exec> </target> <exportAntProperties>true</exportAntProperties> </configuration> </execution> </executions> </plugin>
As an additional note, at the time of publication (2011-10-20), the official documentation of the plugin did not have this document. To get help for the 'versionXYZ' plugin:
mvn help:describe -Dplugin=org.apache.maven.plugins:maven-antrun-plugin:versionXYZ -Ddetail
source share