Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B9EFC184DE for ; Sun, 13 Dec 2015 08:25:36 +0000 (UTC) Received: (qmail 64215 invoked by uid 500); 13 Dec 2015 08:25:36 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 64107 invoked by uid 500); 13 Dec 2015 08:25:36 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 64095 invoked by uid 99); 13 Dec 2015 08:25:36 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Dec 2015 08:25:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9D8E2C0435 for ; Sun, 13 Dec 2015 08:25:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bHcqoiHi-7ba for ; Sun, 13 Dec 2015 08:25:34 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2F1B920BC2 for ; Sun, 13 Dec 2015 08:25:34 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id n186so7509570wmn.0 for ; Sun, 13 Dec 2015 00:25:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Sz5MFxBinjdvjOxca9gjqw2bX5lrL/LTkO9UPospCFc=; b=DcgJAc8BRJtlUQjCdbfF3YD70DvzCG0byAA1yyPY2L/qWoTcHnPs1cyIfxpldfV7O4 aF2bJ1Td9kgU2kmfxw6vbSa5+fHU02Boik7ARHuf7kym4lzpuMBEw6VlEbJ+YR2EWmUI 3hmRu9+5q5lJToqnTwbFdavgl5PfsjWdKGDxvfNVp1fmV9rzQlwP87E9iu4sAshxS/q+ x1he9zT7PVBFTbf/m2LstsLAs1NVHHTlICSn/QbDRZOk7guot6nStVcMuJU2aZBAkRwK zcs1fAm7IhxAIokFSkf13guiMLtlAslgWSCKOOhlcaD/t6MSyylwM+Ql0guEKSCLTRsC n1Ng== MIME-Version: 1.0 X-Received: by 10.28.227.212 with SMTP id a203mr16919694wmh.68.1449995133900; Sun, 13 Dec 2015 00:25:33 -0800 (PST) Received: by 10.27.84.74 with HTTP; Sun, 13 Dec 2015 00:25:33 -0800 (PST) In-Reply-To: References: Date: Sun, 13 Dec 2015 08:25:33 +0000 Message-ID: Subject: Re: I wish we had a way to declare a dependency that wouldn't participate in the classpath From: Stephen Connolly To: Maven Developers List Content-Type: multipart/alternative; boundary=001a114b1964e1e0800526c34cff --001a114b1964e1e0800526c34cff Content-Type: text/plain; charset=UTF-8 pom? On Saturday 12 December 2015, Benson Margulies wrote: > Sometimes, we want to declare a dependency without changing a classpath. > > Project A builds an OSGi bundle and a Karaf feature (classifier > 'feature', type 'xml'). > > Project B wants to consume the feature. it wants to declare the > feature descriptor as a dependency, to (a) ensure reactor order, and > (b) make the dependency information available to plugins. > > But it does _not_ want A's OSGi bundle and it's dependencies in the > classpath. > > The only way out is to exclude them, one-by-one. And when someone adds > a dependency to A, you have to maintain the exclusion list. > > Another example is the tomcat plugin: it needs wars as dependencies, > and similarly it needs to avoid having their dependencies in the > classpath. > > To me, this calls out for another scope. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > > -- Sent from my phone --001a114b1964e1e0800526c34cff--