hi,
i would like to a use mvn to exec different java programs between the
same project directory just similarly like Ant tasks
$ant prog1 (execute my first java program)
$ant prog2 (execute my secound java program)
this is my current setting in pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<arguments>
<argument>-classpath</argument>
<classpath />
</arguments>
</configuration>
</plugin>
however, i only able to do the followings, which is a bit too long, any
better way to shorten this ? yes, I am lazy :-P . sorry!
$mvn exec:java -Dexec.mainClass="com.example.Program1"
$mvn exec:java -Dexec.mainClass="com.example.Program2"
-----------------------------------------------------
My question: is it possible to do these????
-----------------------------------------------------
$ant exec:prog1 (execute my first java program)
$mvn exec:prog2 (execute my secound java program)
pls help
~manchi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]