Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-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 7967410C63 for ; Mon, 3 Nov 2014 19:51:36 +0000 (UTC) Received: (qmail 7250 invoked by uid 500); 3 Nov 2014 19:51:32 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 7057 invoked by uid 500); 3 Nov 2014 19:51:32 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 6746 invoked by uid 99); 3 Nov 2014 19:51:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 19:51:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 19:51:27 +0000 Received: by mail-wg0-f51.google.com with SMTP id l18so11831652wgh.24 for ; Mon, 03 Nov 2014 11:51:06 -0800 (PST) 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; bh=UG5oGfxHQUXs1oAxO1Trdu9ns4edTl1F5sZAhSs1hfI=; b=IonKy5TJkC4L0LbkuiG4g20GqECJkCkvPdC/UNq+O9esUAg+1m0I7v8s8OLqe9EsF1 MjeFgqIBlo/1nzmNajJVDNyzhjIZpb7yTzGO2qymJqzi8tBxphVvJyxx73za7eT/tB1u 4l1J8/fpiWm7blpxe6wMr12BHFeZ4xYR9NdHcF2989Hzd0XZcedwfNoZoIzwa6MclIaP 7/1odsO2DwKHxxTsq0qFsbhUgTufYRPEL8G9O7+hvGDGCh9eZBZCXo2H3vz5rVYgoCCB uq60OWIQ4RAcFrqHaUH8lNPLU6tIsWT853pul+rhCtqajExFkkm5BbIkaR+IW0eAoy7N 83Ew== MIME-Version: 1.0 X-Received: by 10.194.200.129 with SMTP id js1mr11355196wjc.0.1415044265764; Mon, 03 Nov 2014 11:51:05 -0800 (PST) Received: by 10.217.8.66 with HTTP; Mon, 3 Nov 2014 11:51:05 -0800 (PST) In-Reply-To: <2AA3CFFE-AE09-40B7-B2F8-F43AA4B26691@apache.org> References: <78b1f6746fa94340aee68b72a04e3af6@git.apache.org> <2AA3CFFE-AE09-40B7-B2F8-F43AA4B26691@apache.org> Date: Mon, 3 Nov 2014 20:51:05 +0100 Message-ID: Subject: Re: git commit: CAMEL-7887: Executing of 'mvn clean install -Pvalidate' in camel/platforms/karaf/features is failing From: =?UTF-8?Q?Christian_M=C3=BCller?= To: "dev@camel.apache.org" Content-Type: multipart/alternative; boundary=047d7bacbfb6cd6f190506f9aa3b X-Virus-Checked: Checked by ClamAV on apache.org --047d7bacbfb6cd6f190506f9aa3b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think the is a good approach. Best, Christian On Mon, Nov 3, 2014 at 8:05 PM, Daniel Kulp wrote: > > I went ahead and fixed this more =E2=80=9Cproperly=E2=80=9D. > > Basically, I updated the Spring version range in the bundle manifests to > allow 4.x for the imports. It IS possible (with a BUNCH of restrictions) > to use Spring 4 in OSGi, just not with spring-dm. Thus, allowing the > import is important. > > However, for the karaf features.xml file, I restricted it to 3.x since th= e > features file also installs spring-dm. Thus, when using Karaf, you will > get spring3.2.x and spring-dm. The tests thus pass (other than a couple > tests that are failing for me, but they are failing without this change a= s > well). > > Dan > > > > > On Nov 1, 2014, at 6:23 AM, Claus Ibsen wrote: > > > > -1 > > > > You cannot use spring 4.x in karaf/osgi as spring-dm fails, and you > > get a ton of errors. Try running > > > > cd tests > > cd camel-itest-osgi > > mvn clean install > > > > And you get errors such as > > > > 2014-11-01 11:22:02,028 | INFO | FelixStartLevel | Activator > > | 69 - org.apache.camel.camel-core - 2.15.0.SNAPSHOT | > > Camel activator started > > ERROR: Bundle org.apache.camel.camel-spring [91] Error starting > > mvn:org.apache.camel/camel-spring/2.15-SNAPSHOT > > (org.osgi.framework.BundleException: Uses constraint violation. Unable > > to resolve bundle revision org.apache.camel.camel-spring [91.0] > > because it is exposed to package > > 'org.springframework.beans.factory.support' from bundle revisions > > org.apache.servicemix.bundles.spring-beans [80.0] and > > org.apache.servicemix.bundles.spring-beans [74.0] via two dependency > > chains. > > > > Chain 1: > > org.apache.camel.camel-spring [91.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.beans.factory.support)(versi= on>=3D3.2.0)(!(version>=3D4.2.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.beans.factory.supp= ort > > org.apache.servicemix.bundles.spring-beans [80.0] > > > > Chain 2: > > org.apache.camel.camel-spring [91.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.transaction.support)(version= >=3D3.2.0)(!(version>=3D4.2.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.transaction.suppor= t; > > uses:=3Dorg.springframework.aop.scope > > org.apache.servicemix.bundles.spring-tx [89.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.aop.scope)(version>=3D4.0.5.= RELEASE)(!(version>=3D4.1.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.aop.scope; > > uses:=3Dorg.springframework.beans.factory.support > > org.apache.servicemix.bundles.spring-aop [75.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.beans.factory.support)(versi= on>=3D4.0.5.RELEASE)(!(version>=3D4.1.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.beans.factory.supp= ort > > org.apache.servicemix.bundles.spring-beans [74.0]) > > org.osgi.framework.BundleException: Uses constraint violation. Unable > > to resolve bundle revision org.apache.camel.camel-spring [91.0] > > because it is exposed to package > > 'org.springframework.beans.factory.support' from bundle revisions > > org.apache.servicemix.bundles.spring-beans [80.0] and > > org.apache.servicemix.bundles.spring-beans [74.0] via two dependency > > chains. > > > > Chain 1: > > org.apache.camel.camel-spring [91.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.beans.factory.support)(versi= on>=3D3.2.0)(!(version>=3D4.2.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.beans.factory.supp= ort > > org.apache.servicemix.bundles.spring-beans [80.0] > > > > Chain 2: > > org.apache.camel.camel-spring [91.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.transaction.support)(version= >=3D3.2.0)(!(version>=3D4.2.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.transaction.suppor= t; > > uses:=3Dorg.springframework.aop.scope > > org.apache.servicemix.bundles.spring-tx [89.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.aop.scope)(version>=3D4.0.5.= RELEASE)(!(version>=3D4.1.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.aop.scope; > > uses:=3Dorg.springframework.beans.factory.support > > org.apache.servicemix.bundles.spring-aop [75.0] > > import: > (&(osgi.wiring.package=3Dorg.springframework.beans.factory.support)(versi= on>=3D4.0.5.RELEASE)(!(version>=3D4.1.0))) > > | > > export: osgi.wiring.package=3Dorg.springframework.beans.factory.supp= ort > > org.apache.servicemix.bundles.spring-beans [74.0] > > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4006) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:2045) > > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1299= ) > > at > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLeve= lImpl.java:304) > > at java.lang.Thread.run(Thread.java:744) > > > > > > I am reverting the import range to limit spring as 3.x > > > > > > On Thu, Oct 30, 2014 at 7:35 PM, wrote: > >> Repository: camel > >> Updated Branches: > >> refs/heads/master 3e77f050d -> f1b2010b1 > >> > >> > >> CAMEL-7887: Executing of 'mvn clean install -Pvalidate' in > camel/platforms/karaf/features is failing > >> > >> > >> Project: http://git-wip-us.apache.org/repos/asf/camel/repo > >> Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f1b2010b > >> Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f1b2010b > >> Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f1b2010b > >> > >> Branch: refs/heads/master > >> Commit: f1b2010b14ade983cfd69432611a31b2ff19d1f4 > >> Parents: 3e77f05 > >> Author: Christian Mueller > >> Authored: Thu Oct 30 19:34:40 2014 +0100 > >> Committer: Christian Mueller > >> Committed: Thu Oct 30 19:34:56 2014 +0100 > >> > >> ---------------------------------------------------------------------- > >> parent/pom.xml | 3 +-- > >> 1 file changed, 1 insertion(+), 2 deletions(-) > >> ---------------------------------------------------------------------- > >> > >> > >> > http://git-wip-us.apache.org/repos/asf/camel/blob/f1b2010b/parent/pom.xml > >> ---------------------------------------------------------------------- > >> diff --git a/parent/pom.xml b/parent/pom.xml > >> index 92b27c4..c58fee8 100644 > >> --- a/parent/pom.xml > >> +++ b/parent/pom.xml > >> @@ -409,8 +409,7 @@ > >> 1.3.1.RELEASE > >> > 1.3.1.RELEASE_2 > >> 1.0.3.RELEASE > >> - > >> - [3.2,4) > >> + [3.2,4.2) > >> ${spring4-version} > >> 3.2.11.RELEASE > >> 4.0.7.RELEASE > >> > > > > > > > > -- > > Claus Ibsen > > ----------------- > > Red Hat, Inc. > > Email: cibsen@redhat.com > > Twitter: davsclaus > > Blog: http://davsclaus.com > > Author of Camel in Action: http://www.manning.com/ibsen > > hawtio: http://hawt.io/ > > fabric8: http://fabric8.io/ > > -- > Daniel Kulp > dkulp@apache.org - http://dankulp.com/blog > Talend Community Coder - http://coders.talend.com > > --047d7bacbfb6cd6f190506f9aa3b--