Hi Okay since spring-expression is already included due transient deps by camel-context, then we should be all set. The problem was camel-spring-security component, that didnt exclude the spring-expression JAR and thus got the old 3.0.3 version included. So I have fixed that in the pom.xml in the camel-spring-security component. So we should all be okay now.
On Sat, Jun 18, 2011 at 1:15 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > On Sat, Jun 18, 2011 at 11:43 AM, Richard Kettelerij > <richardkettele...@gmail.com> wrote: >> I guess this only concerned OSGi users? Since i've noticed that camel-core >> already has a transitive dependency on spring-expression: >> > > I guess its spring-context that deps on expression. > The spring jars in camel-core is in fact optional, they are only > needed if you need to use JMX. > > That said, we have on the roadmap to correct this, so you can use > camel-core with JMX without any spring JARs at all. > We will move the spring based JMX support into camel-spring (eg the > spring JMX @ annotations). But thats another story. > > > >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Camel :: Core 2.8-SNAPSHOT >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] >> [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ camel-core --- >> [INFO] org.apache.camel:camel-core:bundle:2.8-SNAPSHOT >> [INFO] +- org.slf4j:slf4j-api:jar:1.6.1:compile >> [INFO] +- org.fusesource.commonman:commons-management:jar:1.0:compile >> [INFO] +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile >> [INFO] | +- org.springframework:spring-expression:jar:3.0.5.RELEASE:compile >> [INFO] | \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile >> [INFO] +- org.osgi:org.osgi.core:jar:4.1.0:provided >> [INFO] +- junit:junit:jar:4.8.1:test >> [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:test >> [INFO] +- log4j:log4j:jar:1.2.16:test >> [INFO] \- org.springframework:spring-aop:jar:3.0.5.RELEASE:test (scope not >> updated to compile) >> [INFO] +- aopalliance:aopalliance:jar:1.0:test >> [INFO] +- org.springframework:spring-beans:jar:3.0.5.RELEASE:test >> [INFO] \- org.springframework:spring-core:jar:3.0.5.RELEASE:test >> [INFO] \- commons-logging:commons-logging:jar:1.1.1:test >> >> Nevertheless +1 for including this explicitly. >> >> On Sat, Jun 18, 2011 at 11:26 AM, Jean-Baptiste Onofré >> <j...@nanthrax.net>wrote: >> >>> +1 >>> >>> it makes sense >>> >>> Regards >>> JB >>> >>> >>> On 06/18/2011 11:15 AM, Claus Ibsen wrote: >>> >>>> Hi >>>> >>>> I think we should include the spring-expression.jar in the >>>> camel-spring component. Its for the Spring Expression Language >>>> supported, which we provide out of the box now. >>>> >>>> We may need to either have that added as well in the Karaf spring >>>> feature, or add it to the camel-spring feature in the Camel kit >>>> Like we do for spring-tx >>>> >>>> >>>> <feature name='camel-spring' version='2.8-SNAPSHOT' resolver='(obr)'> >>>> <bundle dependency="true">mvn:org.**apache.geronimo.specs/** >>>> geronimo-jta_1.1_spec/1.1.1</**bundle> >>>> <feature version="[3,4)">spring</**feature> >>>> <feature version="[1.2,2)">spring-dm</**feature> >>>> <bundle dependency="true">mvn:org.**springframework/spring-tx/3.0.** >>>> 5.RELEASE</bundle> >>>> <feature version='2.8-SNAPSHOT'>camel-**core</feature> >>>> <bundle>mvn:org.apache.camel/**camel-spring/2.8-SNAPSHOT</**bundle> >>>> </feature> >>>> >>>> I noticed in the camel-spring-security component, that you out of the >>>> box would end up picking older releases of spring-expression as >>>> spring-security uses 3.0.3 >>>> [INFO] ------------------------------**------------------------------** >>>> ------------ >>>> [INFO] Building Camel :: Spring Security 2.8-SNAPSHOT >>>> [INFO] ------------------------------**------------------------------** >>>> ------------ >>>> [INFO] >>>> [INFO] --- maven-dependency-plugin:2.1:**tree (default-cli) @ >>>> camel-spring-security --- >>>> [INFO] org.apache.camel:camel-spring-**security:bundle:2.8-SNAPSHOT >>>> [INFO] +- org.apache.camel:camel-core:**jar:2.8-SNAPSHOT:compile >>>> [INFO] | +- org.slf4j:slf4j-api:jar:1.6.1:**compile >>>> [INFO] | \- org.fusesource.commonman:**commons-management:jar:1.0:** >>>> compile >>>> [INFO] +- org.apache.camel:camel-spring:**jar:2.8-SNAPSHOT:compile >>>> [INFO] | +- org.springframework:spring-**context:jar:3.0.5.RELEASE:** >>>> compile >>>> [INFO] | | +- org.springframework:spring-**beans:jar:3.0.5.RELEASE:** >>>> compile >>>> [INFO] | | +- org.springframework:spring-** >>>> core:jar:3.0.5.RELEASE:compile >>>> [INFO] | | | \- commons-logging:commons-**logging:jar:1.1.1:compile >>>> [INFO] | | \- org.springframework:spring-** >>>> asm:jar:3.0.5.RELEASE:compile >>>> [INFO] | +- org.springframework:spring-**aop:jar:3.0.5.RELEASE:compile >>>> [INFO] | | \- aopalliance:aopalliance:jar:1.**0:compile >>>> [INFO] | \- org.springframework:spring-tx:**jar:3.0.5.RELEASE:compile >>>> [INFO] +- org.springframework.security:**spring-security-core:jar:3.0.** >>>> 5.RELEASE:compile >>>> [INFO] | +- org.springframework:spring-**expression:jar:3.0.3.RELEASE:** >>>> compile >>>> [INFO] | +- org.aspectj:aspectjrt:jar:1.6.**8:compile >>>> [INFO] | \- org.aspectj:aspectjweaver:jar:**1.6.8:compile >>>> [INFO] +- org.springframework.security:**spring-security-config:jar:3.** >>>> 0.5.RELEASE:compile >>>> [INFO] +- org.apache.camel:camel-test:**jar:2.8-SNAPSHOT:test >>>> [INFO] +- junit:junit:jar:4.8.1:test >>>> [INFO] +- org.slf4j:slf4j-log4j12:jar:1.**6.1:test >>>> [INFO] \- log4j:log4j:jar:1.2.16:test >>>> >>>> >>>> So by including spring-expression in camel-spring we ought to help >>>> align the spring version used out of the box. >>>> >>>> Any problems with this, I wonder? >>>> >>>> >>>> >>>> >> > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: cib...@fusesource.com > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.blogspot.com/ > Author of Camel in Action: http://www.manning.com/ibsen/ > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/