From users-return-130259-apmail-maven-users-archive=maven.apache.org@maven.apache.org Thu Dec 6 05:17:11 2012 Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C997CE12D for ; Thu, 6 Dec 2012 05:17:11 +0000 (UTC) Received: (qmail 69873 invoked by uid 500); 6 Dec 2012 05:17:09 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 69681 invoked by uid 500); 6 Dec 2012 05:17:07 -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 69642 invoked by uid 99); 6 Dec 2012 05:17:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 05:17:06 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rmann@latencyzero.com designates 66.111.4.28 as permitted sender) Received: from [66.111.4.28] (HELO out4-smtp.messagingengine.com) (66.111.4.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 05:16:59 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 55755206B5 for ; Thu, 6 Dec 2012 00:16:39 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute6.internal (MEProxy); Thu, 06 Dec 2012 00:16:39 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:content-type :content-transfer-encoding:subject:message-id:date:to :mime-version; s=smtpout; bh=mynWqECgnr7gQH8jMeoKHVki1F8=; b=WKg o7CCyc5ZNG7ID64fBolR10WTTQYWoGSOKvizs1qdE8aOPaGx/ByjE6arpVCl2NDn OqfEnWF1Ifp08Ps55AW8gdiL4nKGkDUDT7zZHHD6EwqG9V9usCGJ8EjyL+MZhfaS 0mLEMIHECbk986NbACNTDwQf/kbwJih2eIBmF4tw= X-Sasl-enc: IVsp1pvRLcLCjbZweZJILKShjy1paaFW5pnhntPht80Q 1354770998 Received: from [192.168.1.90] (unknown [108.91.173.63]) by mail.messagingengine.com (Postfix) with ESMTPA id D9BFE8E0600 for ; Thu, 6 Dec 2012 00:16:38 -0500 (EST) From: Rick Mann Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: useScope in ant build script Message-Id: Date: Wed, 5 Dec 2012 21:16:37 -0800 To: users@maven.apache.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org Despite reading and re-reading the docs, and googling, for the past = half-hour, I can't see how useScope or scopes is useful in the maven ant = task unless I use a separate POM file. If I list all my dependencies directly in my ant build script, there = appears to be no way to reference one dependency set with multiple = different scopes. For example, I have: =20 =20 ... I have a compile target in ant that uses this as the classpath. But I'd = like my test target to also use it as a classpath. The problem is that = in the test target, I need some of my "provided"-scope dependencies to = be included, so I want to use it as a useScope=3D"test" set of = dependencies. But because this can only be specified with the = dependencies artifact once, there's no way to use it. That seems to make = the feature rather useless. Am I just completely missing the usage? How can I avoid completely = copying the entire dependency set? Thanks, --=20 Rick --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org