I have just used maven exec plugin a log lately, here is a sample of
command I used to run my app:
mvn -q exec:java -DappHome=.
-Dexec.mainClass=cnx.aspect.client.cli.RunBean
-Dexec.args="conf/beans.xml main"
One thing I notice is that if you specified a mainClass that doesn't
exists, you get NPE
Have a look at the Maven Exec Plug-In [1].
Hth,
Nick Stolwijk
[1] http://mojo.codehaus.org/exec-maven-plugin/
Manos Batsis wrote:
I'm looking for the "proper" way to do that (synchronously, if that
makes sense), can it be org.codehaus.plexus.util.cli.CommandLineUtils?
I would appreciate an
I'm looking for the "proper" way to do that (synchronously, if that
makes sense), can it be org.codehaus.plexus.util.cli.CommandLineUtils? I
would appreciate any pointers.
Many thanks,
Manos
-
To unsubscribe, e-mail: [EMAIL