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 6297419D72 for ; Mon, 11 Apr 2016 23:03:58 +0000 (UTC) Received: (qmail 14534 invoked by uid 500); 11 Apr 2016 23:03:58 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 14495 invoked by uid 500); 11 Apr 2016 23:03:58 -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 14483 invoked by uid 99); 11 Apr 2016 23:03:58 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 23:03:58 +0000 Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id D20EA1A003F for ; Mon, 11 Apr 2016 23:03:57 +0000 (UTC) Received: by mail-io0-f169.google.com with SMTP id 2so6089872ioy.1 for ; Mon, 11 Apr 2016 16:03:57 -0700 (PDT) X-Gm-Message-State: AOPr4FV1c2Z54LdDowggdqQg/M8dPJ90NH6RNxW4PGjgbKtQbN5qeM084fMv0bNB+NiQuEV1hLR+eGJmv6sKjg== X-Received: by 10.107.37.12 with SMTP id l12mr539807iol.138.1460415837281; Mon, 11 Apr 2016 16:03:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.150.68 with HTTP; Mon, 11 Apr 2016 16:03:37 -0700 (PDT) In-Reply-To: <0979p39jay34be9n0v72ep0c.1456499405605@email.android.com> References: <0979p39jay34be9n0v72ep0c.1456499405605@email.android.com> From: Guillaume Nodet Date: Tue, 12 Apr 2016 01:03:37 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Installing spring-web via feature file brings in multiple versions of spring To: dev Content-Type: multipart/alternative; boundary=001a1141b24e34a86c05303d8f76 --001a1141b24e34a86c05303d8f76 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Just found this reply. I agree with the first part, i.e. "just one version means this version up to any new version (infinite)", however I tend to disagree with the conclusion. I don't think this should lead to *all* matching features to be installed, but in the simple case, only the highest one should be installed (with no additional constraints). The semantic is : "I depend on a feature named 'spring'", not "I depend on all features named 'spring'". 2016-02-26 16:10 GMT+01:00 Jean-Baptiste Onofr=C3=A9 : > It's normal as just one version means this version up to any new version > (infinite). > > If you want to specify an exact version you should use a closed range: > [version,version] > > Regards > JB > > > > Sent from my Samsung device > > > -------- Original message -------- > From: Daniel McGreal > Date: 26/02/2016 15:45 (GMT+01:00) > To: user@karaf.apache.org > Subject: Installing spring-web via feature file brings in multiple > versions of spring > > Hi Karaf users, > > With the following feature file under K4.0.4 I=E2=80=99m getting multiple= (all?) > spring versions installed, which is causing its own set of problems=E2=80= =A6 > However, with the feature:install command, I correctly only get the versi= on > requested. > > > name=3D"edge.feature"> > > spring-web > > > > > > > karaf@root()> feature:install -v edge.feature > Adding features: edge.feature/[0,0.0.0] > Changes to perform: > Region: root > Bundles to install: > mvn:javax.mail/mail/1.4.4 > mvn:javax.servlet/javax.servlet-api/3.1.0 > mvn:javax.websocket/javax.websocket-api/1.1 > > mvn:org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle/1.0.1 > mvn:org.apache.geronimo.specs/geronimo-jaspic_1.0_spec/1.1 > mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1 > mvn:org.apache.karaf.http/org.apache.karaf.http.core/4.0.4 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopallian= ce/1.0_6 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ao= p/3.2.14.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ao= p/4.0.7.RELEASE_3 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ao= p/4.1.7.RELEASE_2 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ao= p/4.2.3.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-be= ans/3.2.14.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-be= ans/4.0.7.RELEASE_3 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-be= ans/4.1.7.RELEASE_2 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-be= ans/4.2.3.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext/3.2.14.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext/4.0.7.RELEASE_3 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext/4.1.7.RELEASE_2 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext/4.2.3.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext-support/3.2.14.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext-support/4.0.7.RELEASE_3 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext-support/4.1.7.RELEASE_2 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= ntext-support/4.2.3.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= re/3.2.14.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= re/4.0.7.RELEASE_3 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= re/4.1.7.RELEASE_2 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-co= re/4.2.3.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ex= pression/3.2.14.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ex= pression/4.0.7.RELEASE_3 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ex= pression/4.1.7.RELEASE_2 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-ex= pression/4.2.3.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-we= b/3.2.14.RELEASE_1 > > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-we= bmvc/3.2.14.RELEASE_1 > =E2=80=A6 etc > > > > > Any ideas? > Thanks, Dan. > > > --=20 ------------------------ Guillaume Nodet ------------------------ Red Hat, Open Source Integration Email: gnodet@redhat.com Web: http://fusesource.com Blog: http://gnodet.blogspot.com/ --001a1141b24e34a86c05303d8f76--