Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-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 34E7418BFA for ; Sat, 15 Aug 2015 16:47:05 +0000 (UTC) Received: (qmail 86578 invoked by uid 500); 15 Aug 2015 16:47:05 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 86507 invoked by uid 500); 15 Aug 2015 16:47:05 -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 86494 invoked by uid 99); 15 Aug 2015 16:47:04 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2015 16:47:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 435A6C085E for ; Sat, 15 Aug 2015 16:47:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.107 X-Spam-Level: X-Spam-Status: No, score=-0.107 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-0.006, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id x6VPzsdCv6iv for ; Sat, 15 Aug 2015 16:47:00 +0000 (UTC) Received: from nm28-vm9.bullet.mail.gq1.yahoo.com (nm28-vm9.bullet.mail.gq1.yahoo.com [98.136.216.168]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 95D48428DF for ; Sat, 15 Aug 2015 16:46:59 +0000 (UTC) Received: from [98.137.12.174] by nm28.bullet.mail.gq1.yahoo.com with NNFMP; 15 Aug 2015 16:46:52 -0000 Received: from [98.136.164.73] by tm13.bullet.mail.gq1.yahoo.com with NNFMP; 15 Aug 2015 16:46:52 -0000 Received: from [127.0.0.1] by smtp235.mail.gq1.yahoo.com with NNFMP; 15 Aug 2015 16:46:52 -0000 X-Yahoo-Newman-Id: 883839.54937.bm@smtp235.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: uAmD20oVM1lTksD0LLujVjNlErvSJVE_CMcVRP7eG75JWfe l4tfVNsKFFUDQK29BoudFQnFJL8XWhMaGMXIe7drr6pS23KsrBFoquRfYjX_ nhmcpIoSUyt.xTgYtm.s.SlTHRue8r2xWH.A32RiB4.BrDblf3RxTMoaB3Bx OS7glUmu5itdgzjeTgjm1OGDImNhunLH5_oUypUrKv3v7SdmSRO980V2NvWQ ZfwG.LU3r4ji8kEvR9F8EMpPSDu58nOU_.2t_bSuTseleuobFLJk6.zyNg8N R3DgIkpXGNnNoWGmfM06y8lsvy4Z_lwnXYdHRRs_fknZLuBUbH8X78XHZhly XCNeX.6e2._rPUlVGL7HsY_0AZ3YPS5yfg_3Pdyly6dXYtYDTF8uKkJn5ycI qSY0O6yCT5.GXxlbQ5bvxyaYgXZfL4viuSLY8nnFCilzARuw4dPJu7mo_guH M9k_rrRaC13zt49iCcycMRYUpEud8ljYIya2s.kPhr9cDJxpqdd7MJLs2UF_ 5yPmQjo5osZJM5jlx2q_Z9VVxIDEQBKioGAuKWU8mBA-- X-Yahoo-SMTP: .9oIUzyswBANsYgUm_5uPui0skTnzGJXJQ-- Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: 'dependency reduced pom' From: David Jencks In-Reply-To: Date: Sat, 15 Aug 2015 12:46:50 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <37822E7F-D5F9-49AC-9F9B-B22F9231FA1D@yahoo.com> References: <157E17C6-6ABF-4087-8302-23E68ED89F42@yahoo.com> To: dev@felix.apache.org X-Mailer: Apple Mail (2.2104) Ah, I didn=E2=80=99t realize you were talking about fixing the = maven-bundle-plugin rather than individual felix projects. It=E2=80=99s been a long time=E2=80=A6. can=E2=80=99t you just mark the = included dependencies =E2=80=9Cprovided=E2=80=9D and the karaf tooling = will come up with something appropriate? thanks david jencks > On Aug 15, 2015, at 12:30 PM, Benson Margulies = wrote: >=20 > The functionality of the maven-bundle-plugin has some points of > comparison to the maven-shade-plugin. The shade plugin can be asked to > combine multiple artifacts into one big artifact; when you do that, > the default is to publish a pom that reflects that some of the > dependencies are now included in the resulting artifact by removing > them from the the published pom -- the dependency-reduced pom. For > example, if you have a dependency on (e.g.) com.google.guava:guava, > and you tell shade to incorporate it into your artifact, the d-r-p > will not include guava. >=20 > When you use Embed-Dependencies in the bundle plugin, you are doing > something comparable. If you 'inline' them, you are doing something, > well, identical, in that the embedded content is now available for > both OSGi and non-OSGi consumers. >=20 > (I'm not in a position to consider wandering from Maven to Gradle, so > my focus is on the Maven universe.) >=20 > The scenario that hit me was this: >=20 > 1. I have a pom for a bundle that uses Embed-Dependencies to pull in > about 12 non-OSGi jars. > 2. I used the result as part of a Karaf feature > 3. I had to exclude all those embedded jars, one-by-one, from the > Karaf feature, to avoid having them all show up as 'wrapped' bundles. >=20 > So, I was thinking, wouldn't it be handy if I could choose to tell the > maven-bundle-plugin to act like the maven-shade-plugin. For this to be > fully-useful, the commonly-used 'depends' plugin (that produces > metadata read by Karaf rather than reading the real POM) would have to > sucessfully consume the 'reduced' version. >=20 >=20 >=20 > On Sat, Aug 15, 2015 at 12:23 PM, David Jencks > wrote: >> I certainly haven=E2=80=99t rejected the idea because I don=E2=80=99t = know what dependency-reduced poms are. I have no problem with the = effect you describe :-) >>=20 >> Note that some parts of felix are trying to move to gradle/bndtools = based builds (dependency manager and scr at least) I=E2=80=99m not = familiar with where the poms come from in those projects=E2=80=A6. but = you might want to look at other ones first. >>=20 >> thanks >> david jencks >>=20 >>> On Aug 15, 2015, at 12:15 PM, Benson Margulies = wrote: >>>=20 >>> Has there been previous consideration of giving the >>> maven-bundle-plugin the ability to make a dependency-reduced-pom to >>> reflect embedded dependencies? When using the Karaf tooling that = looks >>> at Maven dependencies, the presence of non-bundle dependencies (that >>> have been embedded) leads to unwanted 'wrap' bundles. >>>=20 >>> I would take a run at this unless it's been considers and rejected = as a concept. >>=20