Hi Lee, "The situation is that the assembly jar contains the executable jar and the dependencies under the lib folder. The executable jar also contains the dependency jars along with the application class files itself. Is that right? Are the dependency jars inside some folder in the executable jar?"
Not exactly. What I'm looking for is for the dependency jars to reside only in the file system--for example, under ./lib. Then the executable jar's manifest.mf file contains only the project-specific code, and the necessary manifest.mf to put the dependency jars in the file system on the classpath and tell the runtime what class to use as the main class. This is all that is required for an executable jar to run properly, as far as I know. I'm not sure I understand why everyone seems to feel that having the dependency jars also copied into the executable jar itself is useful or desirable. As far as I can tell all it does is bloat the size of the executable jar, since only the dependencies that are in the file system actually get used. And then, of course, if the assembly would zip/tar/jar everything up into one distributable file intended to be unzipped prior to use, that would be nice, too, but it's not essential. --Erik -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: Friday, June 02, 2006 3:11 PM To: Maven Users List Subject: Re: Stand-alone app I have a build very much like yours. My config for the jar plugin is virtually the same. My assembly xml file is similar. I do NOT get any extra jar files in the executable jar. They are only in the assembled jar under /lib. Here are some differences. I don't see any that should matter. I don't have a <packaging> tag. I have the classpath prefix as "./lib" instead of "lib" I'm using java 1.4. I have a parent pom that may be supplying something. For someone that knows more about maven than I -- what would one add to a pom for a jar that would cause the dependencies to be added to the jar itself? On 6/2/06, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > On 6/2/06, Midtskogen, Erik <[EMAIL PROTECTED]> wrote: > > Hi Wayne, > > > > Where would I put such documentation? I don't really see any place > > on the maven site to put documentation of "tips and techniques". If > > I were to create a assembly:stand-alone-app goal, then at least I'd > > have somewhere to hang the documentation. > > The Wiki would be a great place to start: > http://docs.codehaus.org/display/MAVENUSER/Home > > -- > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] *********************************************************************************** The information in this email (including any attachments) is confidential and may be legally privileged. Access to this e-mail by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it (including any attachments) is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, all attachments, and any copies thereof from your system and destroy any printout thereof. ______________________________________________________________________ The information in this email (including any attachments) is confidential and may be legally privileged. Access to this e-mail by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it (including any attachments) is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, all attachments, and any copies thereof from your system and destroy any printout thereof. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
