Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB27810725 for ; Wed, 26 Nov 2014 21:42:04 +0000 (UTC) Received: (qmail 55247 invoked by uid 500); 26 Nov 2014 21:42:04 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 55185 invoked by uid 500); 26 Nov 2014 21:42:04 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 55173 invoked by uid 99); 26 Nov 2014 21:42:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2014 21:42:03 +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 benson@basistech.com designates 209.85.218.44 as permitted sender) Received: from [209.85.218.44] (HELO mail-oi0-f44.google.com) (209.85.218.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Nov 2014 21:41:59 +0000 Received: by mail-oi0-f44.google.com with SMTP id e131so2661421oig.31 for ; Wed, 26 Nov 2014 13:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basistech.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=F+OzSBJG9HCxc8bpXNgH8OaSpbeFHFg+WLPwOr62zQA=; b=S5MaRs9fN9xUn9p8LfiXi3qt2xuaVz/UL+1h+dTstDos0m2JVDQUI6NrjJBwaINsgT 4mYPDAA/tWcXKbHKNUFFBXufkrfxaRNtt+JFWQnvHJvWIDmZN9ZnVSL/EdO2RUu09yx5 b+8qjqx4qmh0zBM86ZGwr1LF1+oMw2HoWRJSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=F+OzSBJG9HCxc8bpXNgH8OaSpbeFHFg+WLPwOr62zQA=; b=CLoVtZhp8VCHrYmKgnXmLFZjpOA+wufC6dJN8O/NU2g7QGehquuKlRjeT0L1/VL/Al GNTbHex/fTTV2247VPZpDuwSvgSSjuwHVCjVVrtO25EHuZfCJuGwE5/OZl3EbncPdlZq dbdfV6IuaXQLcnoVMmcsfNghKjzelMzlNLarbsZppb9xWsvWLy6u/8oZTDIZHqdkI60X 93PO3Lvltc75SUFuDx8pqRiviMFRbzJs1ROvRw79AgcqvwONdllMXL/F+QmL09LDkUnq wfO0nHPKNtMC8ylGI8L4Q2foTo3xybJSDMEKp9UBiLUr4+58b4Q9gGuTqXxYOnYqNZjb 3FVw== X-Gm-Message-State: ALoCoQn55FE26+OMQECushOG+K20AoFo5rTtpbv4yzsVfjZYzq8wBuUqCe7bO1at5rdgYzk/2MeU MIME-Version: 1.0 X-Received: by 10.202.94.134 with SMTP id s128mr20195775oib.41.1417038099050; Wed, 26 Nov 2014 13:41:39 -0800 (PST) Received: by 10.76.18.146 with HTTP; Wed, 26 Nov 2014 13:41:38 -0800 (PST) In-Reply-To: References: <18BA66CB-AF26-49DC-9FF5-5FA12FBCD74F@adobe.com> <38A1830E-FC20-4D5C-A650-6EAA865AA481@adobe.com> <97E27107-2201-476A-90BD-2F33981ED695@adobe.com> Date: Wed, 26 Nov 2014 16:41:38 -0500 Message-ID: Subject: Re: maven-bundle-plugin: Imports without versions, why? From: Benson Margulies To: users@felix.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org If the bnd google group doesn't respond with a 'you idiot, here's the reason' sort of email, I shall set to work on such a model. On Wed, Nov 26, 2014 at 4:33 PM, David Bosschaert wrote: > Hi Benson, > > Would it be possible to create a little project that reproduces the > behaviour, so that someone on this list can try it? That might help in > pinpointing the issue... > > Cheers, > > David > > On 26 November 2014 at 21:29, Benson Margulies wro= te: >> On Wed, Nov 26, 2014 at 12:29 PM, Felix Meschberger = wrote: >>> Hmm, that sounds strange. Unless you also export c.b.rosette from the d= am-model bundle without a version and thus the import is actually a re-impo= rt, I am out of tips=E2=80=A6 >> >> There are no files in c.b.rosette in the jar file, just in >> c.b.rosette.dm. Time to bug the bnd people, I guess. >> >>> >>> Regards >>> Felix >>> >>>> Am 26.11.2014 um 17:52 schrieb Benson Margulies = : >>>> >>>> This is pretty odd. As you can see below, there's just one dependency >>>> being included. That 'common-api' dependency exports >>>> com.basistech.rosette. The project-of-the-moment imports it, but does >>>> not end up with a version on the import. >>>> >>>> The only export _here_ is com.basistech.rosette.dm.*. Since that's >>>> 'inside' of com.basistech.rosette, could this be an issue? >>>> >>>> >>>> =E2=9E=9C model git:(try-improved-parent) =E2=9C=97 mvn dependency:tre= e >>>> [INFO] Scanning for projects... >>>> [INFO] >>>> [INFO] ---------------------------------------------------------------= --------- >>>> [INFO] Building adm-model 1.10.2-SNAPSHOT >>>> [INFO] ---------------------------------------------------------------= --------- >>>> [INFO] >>>> [INFO] --- maven-dependency-plugin:2.5.1:tree (default-cli) @ adm-mode= l --- >>>> [INFO] com.basistech:adm-model:bundle:1.10.2-SNAPSHOT >>>> [INFO] +- com.basistech:common-api:jar:34.0.0:compile >>>> [INFO] +- com.google.guava:guava:jar:16.0.1:compile >>>> [INFO] +- junit:junit:jar:4.11:test >>>> [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test >>>> [INFO] \- com.googlecode.jmockit:jmockit:jar:1.7:test >>>> >>>> >>>> On Wed, Nov 26, 2014 at 10:13 AM, Benson Margulies wrote: >>>>> On Wed, Nov 26, 2014 at 9:49 AM, Felix Meschberger wrote: >>>>>> Hi >>>>>> >>>>>> IIRC you only get the split-package warning if you embed a package w= hich is provided by more than one dependency. >>>>> >>>>> Is there an option to get some sort of log or trace that would help m= e >>>>> track down two exporters of the same package? >>>>> >>>>> >>>>>> >>>>>> Regards >>>>>> Felix >>>>>> >>>>>>> Am 26.11.2014 um 15:33 schrieb Benson Margulies : >>>>>>> >>>>>>> On Wed, Nov 26, 2014 at 9:25 AM, Felix Meschberger wrote: >>>>>>>> Hi Benson >>>>>>>> >>>>>>>> Do you have two dependencies in the class path which contain the s= ame com.basistech.rosette package ? >>>>>>> >>>>>>> I hope not. I don't get any split-package warnings after I went to = a >>>>>>> good deal of trouble fix that up. I'll go hunting. >>>>>>> >>>>>>>> >>>>>>>> Regards >>>>>>>> Felix >>>>>>>> >>>>>>>> Am 26.11.2014 um 14:56 schrieb Benson Margulies : >>>>>>>>> >>>>>>>>> >>>>>>>>> I don't know if this is, in fact, a bnd question. Here's an impor= t >>>>>>>>> generated by the plugin. Note that there's a version on the first= , and >>>>>>>>> not on the second. >>>>>>>>> >>>>>>>>> Import-Package: com.basistech.rosette,com.basistech.rosette.dm;ve= rsion=3D" >>>>>>>>> [1.10,2)" >>>>>>>>> >>>>>>>>> Here is the Export-Package in the manifest of the bundle that exp= orts >>>>>>>>> com.basistech.rosette: >>>>>>>>> >>>>>>>>> Export-Package: com.basistech.rosette;version=3D"34.0.0",com.basi= stech.ros >>>>>>>>> ette.util;version=3D"34.0.0",com.basistech.util;version=3D"34.0.0= " >>>>>>>>> >>>>>>>>> Note the version. >>>>>>>>> >>>>>>>>> So, howcome I don't get a version on the import? >>>>>>>>> >>>>>>>>> -----------------------------------------------------------------= ---- >>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ------------------------------------------------------------------= --- >>>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>>> >>>>>>> >>>>>>> -------------------------------------------------------------------= -- >>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>>> >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------= - >>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>>>> For additional commands, e-mail: users-help@felix.apache.org >>>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>> For additional commands, e-mail: users-help@felix.apache.org >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> For additional commands, e-mail: users-help@felix.apache.org >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org