On Aug 2, 2007, at 11:02 PM, John Lindal wrote:
I checked out the source for maven-exec-plugin and looked through the
examples, and I've tried everything I can think of in my own
pom.xml, but I
cannot figure out how to specify more than one exec configuration.
How do I use maven-exec-plugin if I need to run more than one job,
possibly
at different points during the build process?
According to the maven documentation, <configuration> can be
included inside
<execution>, but I cannot figure out how to make it work.
Thanks,
John
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
well this is really pretty straight forward (that is when one first
has learned it) just having multiple executions of a plugin. but one
thing is vitally important, and that is to give the two executions
different id..
also use must use <phase> in the execution to bind it to a particular
build phase. within a phase plugin executions are in no particular order
see this example I prepared for usage :
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>exec-one</id>
<phase>verify</phase>
<configuration>
<executable>echo</executable>
<arguments>
<argument>exec one</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>exec-two</id>
<phase>verify</phase>
<configuration>
<executable>echo</executable>
<arguments>
<argument>exec two</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
/Kaare Nilsen
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email