Thanks all for your help. Fred.
On Friday 14 July 2006 15:48, Toli Kuznets wrote: > Fred, > > I've had some limited success with the exec-maven plugin. > If you only need to launch a java app with maven and can specify all > configs in your pom, then it works great. However, if you thought that > you could specify some args on command line (such as -Dexec.args) then > there are some bugs with parsing and assignment of command-line args. > http://jira.codehaus.org/browse/MEXEC-5 > > nevertheless, it works great, and here's an example of launching your > own app from within Maven. Place this in the <plugins> section in the > <builds> in your POM: > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>exec-maven-plugin</artifactId> > <configuration> > > <mainClass>org.marketcetera.oms.OrderManagementSystem</mainClass> > <arguments> > <argument>oms</argument> > </arguments> > <systemProperties> > <systemProperty> > <key>foo</key> > <!-- plugin crashes when there are no > values here --> > <value>bar</value> > </systemProperty> > </systemProperties> > </configuration> > </plugin> > > On 7/14/06, Andrius Ĺ abanas <[EMAIL PROTECTED]> wrote: > > Fred wrote: > > > Hi, > > > > > > Is it possible to launch an application with maven 2.x ? > > > I mean is there any goal that allows users to launch an application > > > with mvn command line ? (ex. "mvn run" runs the main class of the > > > project). If not, does it exist a way to do it (with some plugin or > > > whatever) ? > > > > > > Thanks for your support, > > > > > > Fred. > > > > Hello, > > > > Try exec-maven-plugin, hosted at Codehaus Mojo project. See > > http://mojo.codehaus.org/exec-maven-plugin/. > > > > > > cheers, > > > > Andrius > > > > --------------------------------------------------------------------- > > 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]