Keith,
I'm not sure what you are trying to do here... do you want maven to
*launch* your script, or are you trying to use Maven to *assemble*
everything necessary to launch it?
Maven would let you build a runnable jar file from all the pieces, so
you could then do something like:
java -jar keiths-project-1.0-snapshot.jar
but maven isn't about launching your project after you've written it
(unless you are using something like the cargo plugin in order to do
deploys).
If you want a jruby script to run *as part of your build process* (the
way, for example, the i18n stuff used to work on the project we worked
on together), then you need to write a maven plugin and bind it to a
lifecycle phase of the build. This isn't as hard as it sounds - I do
it in an intermediate maven presentation I have, and could show it to
you in ~10 minutes.
-db
On Tue, Jun 30, 2009 at 12:05 AM, David
Medinets<david.medinets@...> wrote:
>
>
> On Mon, Jun 29, 2009 at 10:48 PM, Keith R.
> Bennett<keithrbennett@...> wrote:
>> Is there an incantation of Maven that is used to run a Jar file?
>> Should I use the ant plugin?
>
> I'd use the Ant plugin. I worked with Maven perhaps a year ago and it
> took a whole shift in thinking for me to use it well. I don't have the
> mode of thinking anymore but I do remember that the Ant plugin worked
> well to bridge the 'generate it' and the 'run it' worlds.
>
>