Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 97089 invoked from network); 2 Sep 2006 21:24:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Sep 2006 21:24:53 -0000 Received: (qmail 12924 invoked by uid 500); 2 Sep 2006 21:24:51 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 12844 invoked by uid 500); 2 Sep 2006 21:24:51 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 12833 invoked by uid 99); 2 Sep 2006 21:24:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Sep 2006 14:24:51 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.85.125.162] (HELO v07528.home.net.pl) (212.85.125.162) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 02 Sep 2006 14:24:49 -0700 Received: from apn-99-86.gprspla.plusgsm.pl (HELO ?172.23.53.128?) (lgawron.mobilebox@home@212.2.99.86) by m029.home.net.pl with SMTP; Sat, 2 Sep 2006 21:24:28 -0000 Message-ID: <44F9F68B.1050909@mobilebox.pl> Date: Sat, 02 Sep 2006 23:24:27 +0200 From: Leszek Gawron User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: cocoon:deploy consider a dependency's scope? References: <47f71d940609021200y5e21e352t8e361d00d9019e4d@mail.gmail.com> <44F9F33B.80804@mobilebox.pl> In-Reply-To: <44F9F33B.80804@mobilebox.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Leszek Gawron wrote: > Rice Yeh wrote: >> Hi, >> Does cocoon:deploy consider a dependency's scope? I have a >> dependency whose scope is 'compile', hence it should not be deployed >> to WEB-INF/cocoon/lib/. But I find it is always deployed. So I use >> 'exclusion' to exclude it. But it is kind of workaround. > Hmmm ... if you need something for 'compile' you need it also for > runtime, don't you? > > What probably should be taken into account is 'provided', 'system' and > 'test' dependencies. I see in code this is probably not handled well. - when building a webapp proper dependencies are copied to WEB-INF/lib by mvn war:exploded. This has got nothing to do with cocoon:deploy. cocoon:deploy only moves the resources to WEB-INF/cocoon/lib if you choose to use shielding classloader. - when performing mvn cocoon:deploy for a development block the task itself copies the dependency jar files. It omits 'provided', 'system' and 'test' dependencies (system was ommited in current trunk - just fixed that). -- Leszek Gawron, IT Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65