Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 18940 invoked from network); 27 Apr 2010 18:06:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Apr 2010 18:06:29 -0000 Received: (qmail 34379 invoked by uid 500); 27 Apr 2010 18:06:26 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 34286 invoked by uid 500); 27 Apr 2010 18:06:26 -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 34278 invoked by uid 99); 27 Apr 2010 18:06:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Apr 2010 18:06:26 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 209.85.221.171 is neither permitted nor denied by domain of brianf@infinity.nu) Received: from [209.85.221.171] (HELO mail-qy0-f171.google.com) (209.85.221.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Apr 2010 18:06:19 +0000 Received: by qyk1 with SMTP id 1so17708477qyk.15 for ; Tue, 27 Apr 2010 11:05:58 -0700 (PDT) Received: by 10.229.97.147 with SMTP id l19mr3570401qcn.24.1272391555811; Tue, 27 Apr 2010 11:05:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.98.137 with HTTP; Tue, 27 Apr 2010 11:05:35 -0700 (PDT) In-Reply-To: References: From: Brian Fox Date: Tue, 27 Apr 2010 14:05:35 -0400 Message-ID: Subject: Re: maven-dependency-plugin: Question about copy-dependencies goal To: Maven Users List Content-Type: multipart/alternative; boundary=0016364ef326b31b8a04853bbeb9 X-Virus-Checked: Checked by ClamAV on apache.org --0016364ef326b31b8a04853bbeb9 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable When you compile in eclipse using m2e it's not executing the lifecycle. How are you executing the build, exactly? On Mon, Apr 26, 2010 at 10:23 AM, Luciano Mantuaneli < luciano.mantuaneli@cpmbraxis.com> wrote: > Greetings. > > > > I have a very specific need in a java project in Eclipse: The jars which > the project depends on must be copied to an external folder. > > > > The *maven-dependency-plugin* and its *copy-*dependencies goal come to > mind immediately. > > > > As a test, I wrote the following pom.xml: > > > > ----- > > > > ... > > > > ... > > > > ... > > > > > org.apache.maven.plugins > > > maven-dependency-plugin > > > > > > > copy-dependencies > > > process-resources > > > > > > copy-dependencies > > > > > > > > > ${my.external.location}/alterloc > > > servlet-api > > > > > > > > > > > > > > > > > ----- > > > > However, the above pom shows some bogus behavior, depending on the user > action: > > 1) Right-clicking the project and selecting =93Maven > > Update Project Configuration=94: The folder =93alterloc=94 is created in > =93my.external.location=94, and the jars, but servlet-api, are copied to = it - > Just as expected. > > 2) Compiling the project: The folder =93dependency=94 = is > created in =93project.build.directory=94, and the jars, including servlet= -api, > are copied to it =96 Not expected, once the configurations seems to be ig= nored > > > > I already tried to change the phase to =93compile=94, to =93process-class= es=94, but > in that case it=92s even worst: The dependencies wasn=92t copied at all. > > > > What am I doing wrong? > > > > Thanks in advance > > > > > > *Luciano Mantuaneli ** * > > > > TI Melhorias - Suporte a Canais > > > > *CPM Braxis* > > Cel: 55 11 8399 0319 > > Tel: 55 11 4196 4622 > > www.cpm.com.br > > www.cpminternational.com > > www.braxis.com.br > > > --0016364ef326b31b8a04853bbeb9--