To go a bit further, I usually wind up creating a single artifact in
these cases: a distributable zipfile of the executable. That is, the jar
and the shell script (.bat file, whatever) zipped together with any
configuration, so I can easily port it. You can achieve this via the
jar:jar postGoal, or via a local, custom goal which calls jar:jar (my
preferred modus operandi). This works pretty well, particularly if
you're configuring your application at invocation-time using
ClassWorlds.

HTH,
-john

On Wed, 2004-07-14 at 10:21, "GÃschl,Siegfried" wrote:
> Hi Christopher,
> 
> There are a few ways to handle multiple artifcats
> 
> +) e.g. a postgoal for "jar:jar" to create your shell script or a ZIP file with the 
> sources
> 
> +) I also use some default goals such as "local:build" if I really have to create 
> multiple artifcats, e.g. a JAR file and an executable JAR containing ALL depending 
> JARs
> 
> Cheers,
> 
> Siegfried Goeschl
> 
> -----Original Message-----
> From: Helck, Christopher [mailto:[EMAIL PROTECTED] 
> Sent: Mittwoch, 14. Juli 2004 15:56
> To: '[EMAIL PROTECTED]'
> Subject: One artifact per project question
> 
> 
> I read somewhere that maven encourages one artifiact for one project. I have some 
> systems being built with ant that I'd like to convert to maven. A typical ant script 
> will produce a jar file and a shell script to execute said jar. From maven's point 
> of view is this one or two artifacts. How should I handle this case?
> 
> Thanks,
> Christopher Helck
> 
> 
> The information contained in this e-mail is confidential. This e-mail is intended 
> only for the stated addressee.  If you are not an addressee, you must not disclose, 
> copy, circulate or in any other way use or rely on the information contained in this 
> e-mail. if you have received this e-mail in error, please inform us immediately and 
> delete it and all copies from your system.
> 
> EBS Dealing Resources International Limited.  Registered address:  55-56 Lincoln's 
> Inn Fields, London WC2A 3LJ, United Kingdom. Registered number 2633663.
> 
> EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison Avenue, 
> 24th Floor, New York, NY 10022, USA, and One upper Pond road, Building F - Floor 3, 
> Parsippany, NJ 07054, USA.
> 
> EBS Dealing Resources Japan Limited, a Japanese Corporation. Address: Asteer 
> Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku,  Tokyo 104-0033, Japan.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
John Casey
[EMAIL PROTECTED]
CommonJava Open Components Project
http://www.commonjava.org


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

Reply via email to