You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EJ Ciramella <ej...@upromise.com> on 2007/07/16 19:39:07 UTC
running a java class form maven2
Is there a simply way to simply run a java class from maven 2 without
using the built in ant facilities?
Re: running a java class form maven2
Posted by Patrick Kimber <ma...@gmail.com>.
Hi
I use the Maven exec plugin:
http://mojo.codehaus.org/exec-maven-plugin/
To run MainClass in the current VM with the enclosing project's
dependencies as classpath:
mvn exec:java -Dexec.mainClass="com.company.app.MainClass"
Patrick
On 16/07/07, EJ Ciramella <ej...@upromise.com> wrote:
> Is there a simply way to simply run a java class from maven 2 without
> using the built in ant facilities?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org