I've been able to successfully define the configuration for a single
execution, but I would like to define more than one.

IOTW, I have the following:

...
<plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>client</id>
            <goals>
              <goal>exec</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <executable>foo</executable>
          <arguments>
            <argument>-classpath</argument>
            <classpath/>
            <argument>A B C D</argument>
          </arguments>
        </configuration>
          <!--  This doesn't work - you'll have to pass everything on the 
cmdline!
            <configuration>
          <executable>bar</executable>
          <arguments>
            <argument>X Y Z</argument>
          </arguments>
        </configuration>
      -->
      </plugin>

As you can see, I can define how to run foo, but not bar.  I would like to
do both, since it will be common for users of the software to run more than
one application.
-- 
View this message in context: 
http://www.nabble.com/exec-plugin---how-to-define-more-than-one--tf2149338.html#a5935357
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to