Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 57649 invoked from network); 4 Mar 2008 06:16:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2008 06:16:10 -0000 Received: (qmail 63505 invoked by uid 500); 4 Mar 2008 06:15:58 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 63434 invoked by uid 500); 4 Mar 2008 06:15:58 -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 63422 invoked by uid 99); 4 Mar 2008 06:15:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 22:15:58 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [66.249.82.238] (HELO wx-out-0506.google.com) (66.249.82.238) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2008 06:15:22 +0000 Received: by wx-out-0506.google.com with SMTP id h28so846827wxd.0 for ; Mon, 03 Mar 2008 22:15:31 -0800 (PST) Received: by 10.100.48.16 with SMTP id v16mr1519500anv.67.1204611331424; Mon, 03 Mar 2008 22:15:31 -0800 (PST) Received: from ?192.168.5.23? ( [59.96.58.255]) by mx.google.com with ESMTPS id c1sm2799630ana.36.2008.03.03.22.15.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Mar 2008 22:15:30 -0800 (PST) Message-ID: <47CCE8F3.6060208@customerxps.com> Date: Tue, 04 Mar 2008 11:45:15 +0530 From: Shakun Gupta User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: Maven Users List Subject: Dependency Plugin Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I am using the maven dependency plugin v 2.0. I wanted to copy the dependency jars to an external folder. I tried two approaches: 1. I added the configuration for dependency-plugin in the pom.xmls of the modules and when I ran the "dependency:copy-dependencies" task along with the corresponding life cycle goal at the parent level, the dependencies were not copied at the external folder location but were copied at the default location. (target/dependency). 2. I added all the project dependencies to the parent. And gave the dependency-plugin configuration in the parent pom with the life cycle goal as package. And to avoid inheritance, I modified poms of modules with setting the lifecycle goal as deploy. So, when I ran the "dependency:copy-dependencies" goal along with life cycle goal package at the parent level, the task is also called in the modules and thankfully the dependencies are not copied again. So, I wanted to ask a few things: 1. How can I disable the copying of dependency jars in the default folder (I don't need these jars). 2. In the first approach, Is the dependency plugin expected to work like that or it is a bug. Also, how can I achieve the task that I want using that approach. 3. In the second approach, how can I override the parent pom so that copy-dependency task is not called. 4. Also, please let me know which approach is better. To give dependencies at the parent level or at each module level. Regards, Shakun --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org