Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7290E1836C for ; Wed, 5 Aug 2015 17:12:52 +0000 (UTC) Received: (qmail 41247 invoked by uid 500); 5 Aug 2015 17:12:52 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 41201 invoked by uid 500); 5 Aug 2015 17:12:52 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 41191 invoked by uid 99); 5 Aug 2015 17:12:52 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2015 17:12:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id ADBDF1A987C for ; Wed, 5 Aug 2015 17:12:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.213 X-Spam-Level: * X-Spam-Status: No, score=1.213 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ECnJIp_Enrym for ; Wed, 5 Aug 2015 17:12:43 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 9BF02429BC for ; Wed, 5 Aug 2015 17:12:42 +0000 (UTC) Received: by lbbpo9 with SMTP id po9so28471668lbb.2 for ; Wed, 05 Aug 2015 10:12:41 -0700 (PDT) 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:content-transfer-encoding; bh=9hh6bJBg9ndBYYWFFnTaM8xNxEQPf6MlhAFegCi8JOw=; b=p2f+CT7QjFTdohiLP4Dg9jiGShQlEQkS676zw8+n/ffLyNpJEAQU9zkfsf4Lf8q8JW OuS6/K4v+C2rWIQWC0H/K2/ov2KpTRVyXCLD4rTPqH7z42RuNGG1R2jw3IZAG+L4FudE C2lMWpHx/+c/jvM9qJNZqjOeNRcbKIujllit/kclmeTiVyKS4jeZI78ea0LHSauASsKf 9Z442/EbDezQfL6nla8HbIsz5JKPPXdAAK7y2uh19iyTxLEUmE8q3T7aOBVVSCgAOgdH RZ9JtLQ/Lb/kGpUcIgnOXOQpN/TjqKdWJRBflsufwtjicBtv2Gu5zfed5Cp99o3Lb3pn 6lbQ== MIME-Version: 1.0 X-Received: by 10.152.37.37 with SMTP id v5mr10045490laj.11.1438794761557; Wed, 05 Aug 2015 10:12:41 -0700 (PDT) Received: by 10.25.212.210 with HTTP; Wed, 5 Aug 2015 10:12:41 -0700 (PDT) In-Reply-To: <55C22BAF.2000707@nanthrax.net> References: <55C22BAF.2000707@nanthrax.net> Date: Wed, 5 Aug 2015 19:12:41 +0200 Message-ID: Subject: Re: How to avoid getting two servicemix-specs versions when installing camel or cxf 's feature From: Aki Yoshida To: user@karaf.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi JB, Thanks for the explanation. For the current snapshot version of camel (2.16-SNAPSHOT and 2.15.3-SNAPSHOT), we used approach 1 to solve this problem for now. If the spec features are made available in one of the Karaf's repos as in approach 2, that will be great. This can avoid this problem for other combination in the future or with a combination with other components that also can use this shared features to avoid getting into this problem. Will you be providing the spec features as in approach 2? Regards, aki 2015-08-05 17:28 GMT+02:00 Jean-Baptiste Onofr=C3=A9 : > Hi Aki, > > We have different ways: > 1/ we "align" CXF and Camel to the same spec bundle version. As spec bund= les > are pretty stable in term of release, I think it's probably the easiest > move, but we don't actually fix the problem if we use old version of one = of > the two. > 2/ remove spec from CXF and Camel and put a spec feature directly in Kara= f, > as we do for jetty, etc. > 3/ provision spec bundle in the lib folder as we do for activator spec > bundle > > Probably 2 would make sense. Anyway, we will have to update CXF and Camel= to > refer to provided spec feature. With Karaf 4 and the new feature resolver= , > it would be better to use feature requirements and let the resolver deals > with spec bundle. > > Regards > JB > > > On 08/05/2015 11:38 AM, Aki Yoshida wrote: >> >> Originally, I posted the following mail to dev@camel regarding this issu= e. >> >> http://camel.465427.n5.nabble.com/Installing-camel-cxf-2-15-2-feature-le= ads-to-two-versions-of-ServiceMix-Stax-API-bundles-installed-td5769830.html >> >> Currently, both camel and cxf have their features that directly >> installing some servicemix-specs bundles. This leads to the problem >> mentioned in the above mail thread that installing camel-cxf leads to >> installing two versions of servicemix-spec because camel-2.15.2 is >> using smx-specs 2.2.0 while cxf-3.0.4 referred in camel-2.15.2 is >> using smx-specs 2.4.0. >> >> I am wondering if we need to define this feature (e.g., feature >> stax-api-1.0) outside of camel and cxf and both refer to this external >> feature using the appropriate version range e.g. [2.2,3) or we can >> locally solve this problem within camel and cxf's feature definitions? >> >> I would appreciate for your comments. >> >> regards, aki >> > > -- > Jean-Baptiste Onofr=C3=A9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com