Tony,

You can also try using the javaapp plugin
(http://maven-plugins.sourceforge.net/).

-Vincent

> -----Original Message-----
> From: Markos Charatzas [mailto:[EMAIL PROTECTED]
> Sent: vendredi 11 mars 2005 11:13
> To: [email protected]
> Subject: Re: Using maven to run a program
> 
> Not sure if you can do it but you can specify your main class in
> project.properties like this
> 
> "maven.jar.mainclass = my.package.MyClass"
> 
> then simply create a jar file using "maven jar" and use common java syntax
> to
> run your program
> 
> e.g.
> "java -jar myjar.jar
> 
> why would you like to to run a java application through maven? :/
> 
> Regards,
> Markos Charatzas
> 
> On Friday 11 March 2005 03:47, Tony Johnson wrote:
> > HI, can anyone point me to a plugin which will let me run console style
> > programs which have been built using maven? I.e. instead of:
> >
> > set CLASSPATH=whatever
> > java my.package.Class some args
> >
> > I would like to be able to simply type (something like):
> >
> > maven run my.package.Class some args
> >
> > Or is there some better way of achieving the same result?
> >
> > Thanks, Tony Johnson
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to