configure 2 executions of the maven-exec-plugin, one for each of you classes. Instead of using plugin/configuration use plugin/executions/execution/configuration to setup the settings.
-Andrew On Thu, Oct 2, 2008 at 12:21 PM, Trevor Harmon <[EMAIL PROTECTED]> wrote: > In Ant, I am used to launching programs like this: > > <target name="foo"> > <java classname="foo.Foo"> > <arg value="-abc"/> > </java> > </target> > > <target name="bar"> > <java classname="bar.Bar"> > <arg value="-xyz"/> > </java> > </target> > > ant foo --> launches Foo with parameter -abc > ant bar --> launches Bar with parameter -xyz > > This doesn't seem to be possible in Maven. The problem, apparently, is that > the exec:java goal maps to one and only one program. In other words, all I > can do is this: > > mvn exec:java > > I can set it up to launch Foo or Bar, but it can't handle both. > > Is there a way around this? > > Trevor > > > --------------------------------------------------------------------- > 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]
