Milos Kleint wrote:
hello,

it it possible to run a class with it without configuring the plugin
in pom? just by constructing a mvn exec:exec with additional params on
the command line?

This should do the trick

mvn exec:java -Dexec.mainClass="com.example.Main" [-Dexec.arguments="argument1"] [-DkillAfter=60000] ...

look here for more details : http://mojo.codehaus.org/exec-maven-plugin/introduction.html

I'm looking for a setup for netbeans maven integration to enable "Run
single file" action on maven projects. That's a fairly ad hoc thing
and I would like to avoid configuring the project's pom for such a
case.

Would that we something worth adding?

Thanks.

Milos

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to