You need the assembly-plugin for that. When you install a project with an attached assembly (that is <goal>attached</goal>) it will place you plain jar in the repository and another one that was build by your assembly.
-----Original Message----- From: Wojciech Biela [mailto:[EMAIL PROTECTED] Sent: 13 July 2006 11:20 To: Maven Users List Subject: Re: include jar dependencies in jar package hmm.. what I have is a main module and a dozen of submodules each of which is supposed to be jarred with that /lib dir and deployed to the local repository, so the main module may have them as dependencies as desired The whole process is to be triggered from the main module with a single command. I'd rather not use the assembly-plugin for that if not needed, there are plenty of modules and I'd like to have as little as XML config as possible. hm? -- Wojtek Biela 2006/7/13, ben short <[EMAIL PROTECTED]>: > That works if you are building a war. But i think you need to use the > assembly plugin to do what you are asking. > > Ben > > On 7/13/06, Wojciech Biela <[EMAIL PROTECTED]> wrote: > > A google search for this message's subject didn't reveal any useful > > tips on what I'm looking for. > > > > I want to have the "mvn package" command create a jar that besides > > all usual stuff includes a /lib directory including all runtime type > > dependencies that are declared in the pom.xml. > > > > I thought it's a very basic thing, but surprisingly I can't find any > > docs on that. > > > > What did I miss? > > > > Best regards > > -- > > Wojtek Biela > > > > -------------------------------------------------------------------- > > - 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] Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]