How can I get information from maven-antrun-plugin back to Maven script? For example:
[...]
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec ... resultproperty="foo">
</target>
</configuration>
</execution>
</executions>
</build>
[...]
I'm interested to use this foo
property later in Maven. How to it get out of antrun
?
I am not sure if this solution will work, but maybe you can give it a try:
The idea is to use define a property available for Maven (called here
foo.mvn
) by using theproject.setProperty("foo.mvn", ${foo});
. I am using JavaScript here, so you need to add some dependencies in theantrun
plugin to be able to run it...