Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 77049 invoked from network); 23 Nov 2009 18:24:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Nov 2009 18:24:19 -0000 Received: (qmail 41503 invoked by uid 500); 23 Nov 2009 18:24:19 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 41425 invoked by uid 500); 23 Nov 2009 18:24:18 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 41412 invoked by uid 99); 23 Nov 2009 18:24:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 18:24:17 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mcculls@gmail.com designates 209.85.212.201 as permitted sender) Received: from [209.85.212.201] (HELO mail-vw0-f201.google.com) (209.85.212.201) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2009 18:24:14 +0000 Received: by mail-vw0-f201.google.com with SMTP id 39so5107162vws.30 for ; Mon, 23 Nov 2009 10:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=1dA4IzGA0LUVzZ1vXYfWXvSBJ/Diy/WM0WO6ro/BhVc=; b=kgtduXZI6RiyM4hkEPnnppXN2p04aV7wxQrorHVeSUJuoYxt3CkUB4fFLb0yINtiDU LpLXVYOSzP8l0+a/F/8oSdWfUQqblm6nPxBzltDfXBlC5MWRXGKnf8f058BFEvdMD8/b vVNDbYMkg4m9m4SaxVUWLEJo3qcgnx9KIEm4I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qLVXW71hg+QL9QZpXNXdMrrnmVIFnpLVOYgkLJ7Sk5mLmYmM9V12vV1+aIJvhC/1vZ TfNmSUhAzDVagJc1EOvuqJUwwXFxZzoCfwf4ohHVhOGkMXyy/Ata3PvZ+PZoe2MOGYm3 lnwdwm9WYsRTmEr2TCQuQGnZaXCnusL99/dLI= MIME-Version: 1.0 Received: by 10.220.123.167 with SMTP id p39mr6266353vcr.22.1259000633854; Mon, 23 Nov 2009 10:23:53 -0800 (PST) In-Reply-To: <2FE713B8-F2DB-40B5-88C2-CB96E845E502@toolazydogs.com> References: <2FE713B8-F2DB-40B5-88C2-CB96E845E502@toolazydogs.com> Date: Tue, 24 Nov 2009 02:23:53 +0800 Message-ID: <81f0d9c0911231023x5fbef6c5td856da04c7cae1c8@mail.gmail.com> Subject: Re: Removing imports in bundles generated by Maven bundle plugin From: Stuart McCulloch To: dev@felix.apache.org Content-Type: multipart/alternative; boundary=001636d339598d8a3904790ded13 --001636d339598d8a3904790ded13 Content-Type: text/plain; charset=ISO-8859-1 2009/11/24 Alan D. Cabrera > When converting 3rd party jars it's my understanding that it's a good idea > that if it's a "leaf" jar, i.e. has no deps, then it should not import what > it exports. > > It's not clear to me how I should configure the bundle plugin to do this. > the Bnd tool handles the manifest generation, see: http://aqute.biz/Code/Bnd#export-package specifically the ";-noimport:=true" package attribute: Export-Package= org.foo.bar.*;-noimport:=true alternatively you can use negated entries in Import-Package: Import-Package: !org.foo.bar, * HTH Regards, > Alan > -- Cheers, Stuart --001636d339598d8a3904790ded13--