Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 96232 invoked from network); 17 Nov 2009 18:33:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Nov 2009 18:33:55 -0000 Received: (qmail 88126 invoked by uid 500); 17 Nov 2009 18:33:52 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 88027 invoked by uid 500); 17 Nov 2009 18:33:52 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 88017 invoked by uid 99); 17 Nov 2009 18:33:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 18:33:52 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of the.malkolm@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Nov 2009 18:33:50 +0000 Received: by bwz3 with SMTP id 3so314997bwz.36 for ; Tue, 17 Nov 2009 10:33:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=7q+y5CobqUVnz+CyRUUEVqX3KWclwMaUTjyhjWj6hjc=; b=pNdNqt+NzeZ+j3xKLjZiFglZF0GubDdPwi/f0p/LiHCmZpw+yFgS+nclIX/n4bxXjx oemP+6w4GgYvpac47C12fZLGyHlGRQSg7oAl6ebSnLsYn8jUxxPu144JmfW8VbC7LV5t 5FTaUVpwb+KVdUffXYeMsoBbnLl682UX3PKUI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=MGETeaDssUPAFOZwUX5nSdmQTGlPGwaXsjMXqYhzLLyA4N/RLUXLNjx79/IfZAMrIm y4LNz03Am2rjIEWvNxrlA5GKugtQxljJ/eTyCZhzl5qc5lXuOWlutsIdYj8bvFZbmbf2 G8Vd2SPVBin7zuHeBCb8F6wJFTJnkMRha7ErY= MIME-Version: 1.0 Received: by 10.103.84.2 with SMTP id m2mr2117283mul.107.1258482808158; Tue, 17 Nov 2009 10:33:28 -0800 (PST) In-Reply-To: References: <6c4efb760911170625h213715cdwcf5b6d1eccd1efb3@mail.gmail.com> <2eb298b10911170651n1189871eg18827ebf529fff01@mail.gmail.com> <6c4efb760911170956h4278fd7fs8dbac6af35ea1a97@mail.gmail.com> <2eb298b10911171005l26ba3c3ajd5799d4543bd2d35@mail.gmail.com> <6c4efb760911171012w132aa811i6f084b82a9f3ba45@mail.gmail.com> From: Alexander Date: Wed, 18 Nov 2009 00:33:08 +0600 Message-ID: <2eb298b10911171033g32087cf5m6f6a7a6374ce1849@mail.gmail.com> Subject: Re: maven assembly: how to create an execution JAR without packing the dependencies To: Maven Users List Content-Type: multipart/alternative; boundary=0016e6550dcebc7cf50478955c17 --0016e6550dcebc7cf50478955c17 Content-Type: text/plain; charset=ISO-8859-1 Question was how make executable jar without including all dependencies in application jar but in separate folder. 2009/11/18 Brian Fox > > http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ > > On Tue, Nov 17, 2009 at 1:12 PM, eyal edri wrote: > > i will, once i get to work tomorrow :) > > > > thanks for the help. > > > > On Tue, Nov 17, 2009 at 8:05 PM, Alexander > wrote: > > > >> Dont be shy, just try it. > >> > >> 2009/11/17 eyal edri > >> > >> > can i use the 'dependency:copy-dependencies< > >> > > >> > http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html > >> > >' > >> > goal in this project to tell it to copy all it's > >> > dependencies to the "lib" dir? > >> > like shown in here: > >> > > >> > > >> > > >> > > >> > > >> > org.apache.maven.plugins > >> > maven-dependency-plugin > >> > > >> > > >> > copy-dependencies > >> > package > >> > > >> > copy-dependencies > >> > > >> > > >> > /usr/local/app > >> > false > >> > false > >> > true > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > btw: (when you said *lib*, > >> > > >> > does this means "projectHome/lib" is the classPath?) > >> > > >> > > >> > On Tue, Nov 17, 2009 at 4:51 PM, Alexander > >> wrote: > >> > > >> > > You could do this without assembly plugin. > >> > > > >> > > Just copy all dependencies with maven-dependency-plugin to some > folder > >> > and > >> > > than add this folder as classpath prefix in maven-jar-plugin. > >> > > > >> > > example for second part > >> > > > >> > > > >> > > maven-jar-plugin > >> > > > >> > > > >> > > > >> > > you.main.class > >> > > true > >> > > lib > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > 2009/11/17 eyal edri > >> > > > >> > > > Hi, > >> > > > > >> > > > i'm trying to figure out how can i create a working executable JAR > >> that > >> > > has > >> > > > dependencies > >> > > > (in-house maven projects plus external lib such as Log4J). > >> > > > > >> > > > I tried using the assembly plugin by creating a > >> > "jar-with-dependencies". > >> > > > > >> > > > but this creates a big JAR with all the dependencies included. > >> > > > > >> > > > I want to be able to install commons dependencies in a commons > >> > directory > >> > > > (/usr/lib/maven-projects/ for e.g.), > >> > > > and that every project that depends on them can use them. > >> > > > > >> > > > What should i do in the pom file of the infrastructure project and > >> the > >> > > > project that depends on it? > >> > > > > >> > > > i've read almost all the complete "maven-definite-guide", but > didn't > >> > find > >> > > a > >> > > > concise answer... > >> > > > > >> > > > thanks, > >> > > > -- > >> > > > Eyal Edri > >> > > > > >> > > > >> > > > >> > > > >> > > -- > >> > > Regards, > >> > > Alexander > >> > > > >> > > >> > > >> > > >> > -- > >> > Eyal Edri > >> > > >> > >> > >> > >> -- > >> Regards, > >> Alexander > >> > > > > > > > > -- > > Eyal Edri > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > -- Regards, Alexander --0016e6550dcebc7cf50478955c17--