exec:java is fine for running a class however fails for debugging as one needs to spawn a new jvm for debugging. however I think it's not possible to include the classpath as a parameter on the command line for exec:exec
Milos On 3/8/07, Kaare Nilsen <[EMAIL PROTECTED]> wrote:
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
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
