Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C7B1185D6 for ; Fri, 12 Jun 2015 09:56:29 +0000 (UTC) Received: (qmail 45334 invoked by uid 500); 12 Jun 2015 09:55:55 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 45312 invoked by uid 500); 12 Jun 2015 09:55:55 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 45288 invoked by uid 99); 12 Jun 2015 09:55:54 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 09:55:54 +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 6973A1A54E4 for ; Fri, 12 Jun 2015 09:55:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id l5YYYwB_ulng for ; Fri, 12 Jun 2015 09:55:44 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 91B0221659 for ; Fri, 12 Jun 2015 09:55:43 +0000 (UTC) Received: from mfilter34-d.gandi.net (mfilter34-d.gandi.net [217.70.178.165]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 5828BA811F for ; Fri, 12 Jun 2015 11:55:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter34-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter34-d.gandi.net (mfilter34-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id zw3fGhMlc2Mz for ; Fri, 12 Jun 2015 11:55:20 +0200 (CEST) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.10] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id BDD1AA8213 for ; Fri, 12 Jun 2015 11:55:20 +0200 (CEST) Message-ID: <557AAC88.7060407@nanthrax.net> Date: Fri, 12 Jun 2015 11:55:20 +0200 From: =?UTF-8?B?SmVhbi1CYXB0aXN0ZSBPbm9mcsOp?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: dev@karaf.apache.org Subject: Re: [DISCUSS] Best way to provide a migration to the new 1.3.0 features schema for downstream projects References: <55793D17.50206@nanthrax.net> <5579A92A.2070600@nanthrax.net> In-Reply-To: <5579A92A.2070600@nanthrax.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Before starting the instance: you first populate the system.properties,=20 and after you start the instance. It's what I did in Cellar itest for instance. Regards JB On 06/11/2015 05:28 PM, Jean-Baptiste Onofr=C3=A9 wrote: > It looks good to me ! > > Thanks, > Regards > JB > > On 06/11/2015 05:26 PM, Guillaume Nodet wrote: >> 2015-06-11 17:21 GMT+02:00 Jamie G. : >> >>> Long as the patched Karaf can handle the older specs too then all is >>> good >>> :) >>> >> >> Definitely ! >> >> What I've done, is very simple. It's just about removing the unsuppor= ted >> xml elements when parsing the xml for a 1.3.0 schema, so that jaxb won= 't >> complain about them. It seems attributes that have no matching field = is >> not a problem... >> >> >>> >>> Once the new spec is in place I'll talk to the SDN community about th= e >>> changes and help them migrate as well. >>> >>> Cheers, >>> Jamie >>> >>> On Thu, Jun 11, 2015 at 12:33 PM, Guillaume Nodet >>> wrote: >>>> So I started experimenting a bit, and the second solution seems to b= e >>> very >>>> easy to implement. >>>> I've been able to deploy an upgraded pax-web 4.2.3-SNAPSHOT with >>>> specific >>>> Karaf 4 features and install pax-http without any problems (but the >>> change >>>> of a few imports in karaf to support pax-web 4.x). >>>> So unless there are objections, I'll go ahead and add degraded suppo= rt >>> for >>>> Karaf 4 features to Karaf 2.4 and 3.0 branches. >>>> Once those are released, we should be able to migrate downstream >>>> projects >>>> to leverage the new Karaf 4 features where it makes sense. >>>> >>>> 2015-06-11 9:47 GMT+02:00 Jean-Baptiste Onofr=C3=A9 : >>>> >>>>> Hi Guillaume, >>>>> >>>>> I would do for the second one, I think it's easier and make sense f= or >>>>> backward compatibility. >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> >>>>> >>>>> On 06/11/2015 08:51 AM, Guillaume Nodet wrote: >>>>> >>>>>> I want to work on a nice way to migrate to the new 1.3.0 schema fo= r >>>>>> features for downstream projects (pax-web, cxf, activemq, etc=E2=80= =A6). >>>>>> I have two possible ways in mind which I'd like to discuss. >>>>>> >>>>>> The first one would be to write an additional mojo for the maven >>>>>> plugin >>>>>> which would translate the new 1.3.0 schema to older schemas, delet= ing >>>>>> unsupported stuff. The mojo would thus generate an additional sch= ema >>> with >>>>>> a different classifier, either for the old schema, or for the new >>>>>> one. >>>>>> >>>>>> Another way would be to add this translation tool inside a bug-fix >>> release >>>>>> of older branches, so that the old feature service could support t= he >>> 1.3.0 >>>>>> syntax. The drawback is that this would not work on already exist= ing >>>>>> releases obviously. >>>>>> >>>>>> Or we could do both. >>>>>> >>>>>> Fwiw, I haven't experimented yet on the translation, so for comple= x >>>>>> features definition using the new schema, I'm not sure yet if the >>>>>> translation will lead to usable results. As a last resort, if >>>>>> it's not >>>>>> usable, the downstream projects can manually provide the two >>> repositories. >>>>>> >>>>>> Thoughts ? >>>>>> >>>>>> Guillaume Nodet >>>>>> >>>>>> >>>>> -- >>>>> Jean-Baptiste Onofr=C3=A9 >>>>> jbonofre@apache.org >>>>> http://blog.nanthrax.net >>>>> Talend - http://www.talend.com >>>>> >>> >> > --=20 Jean-Baptiste Onofr=C3=A9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com