Hi all!

I'm trying to update our application from karaf 2.2.11 to karaf 2.3.4, but
I'm having some problems regarding spring versions. In our application we
use spring 3.0.7.RELEASE version with Spring Security 3.0.8.RELEASE version.

One of our dependencies is spring-dm, but also spring-dm-web. When we
install our feature depending on both, it install spring feature version
3.2.4.RELEASE, since, because of (i guess) it dependency declaration:









*karaf@root> features:info spring-dmDescription of spring-dm 1.2.1
feature Spring DM
support----------------------------------------------------------------Feature
has no configurationFeature has no configuration filesFeature depends on:
spring [2.5.6,4)*

This feature accepts all spring versions from 2.5 to 6.4 (excluded), and
even though we already installed spring feature version 3.0.7, it tries to
install spring 3.2.4, which implies the following exception:
























*Error executing command: Could not start bundle
mvn:org.opennaas/org.opennaas.core.security/0.27-SNAPSHOT in feature(s)
opennaas-spring-security-0.27-SNAPSHOT: Uses constraint violation. Unable
to resolve bundle revision org.opennaas.core.security [176.0] because it is
exposed to package 'org.springframework.beans.factory.support' from bundle
revisions org.springframework.beans [58.0] and org.springframework.beans
[159.0] via two dependency chains.Chain 1:  org.opennaas.core.security
[176.0]    import:
(&(osgi.wiring.package=org.springframework.beans.factory.support)(version>=3.0.7.RELEASE))
|    export: osgi.wiring.package=org.springframework.beans.factory.support
org.springframework.beans [58.0]Chain 2:  org.opennaas.core.security
[176.0]    import:
(&(osgi.wiring.package=org.springframework.osgi.web.context.support)(version>=1.2.1))
|    export:
osgi.wiring.package=org.springframework.osgi.web.context.support;
uses:=org.springframework.osgi.context.support
org.springframework.osgi.web [170.0]    import:
(&(osgi.wiring.package=org.springframework.osgi.context.support)(version>=1.2.1)(version<=1.2.1))
|    export: osgi.wiring.package=org.springframework.osgi.context.support;
uses:=org.springframework.beans.factory.support
org.springframework.osgi.core [165.0]    import:
(&(osgi.wiring.package=org.springframework.beans.factory.support)(version>=2.5.6)(!(version>=4.0.0)))
|    export: osgi.wiring.package=org.springframework.beans.factory.support
org.springframework.beans [159.0]*


Is there any way to force spring-dm to depend on a specific version?

Thanks!

All the best,

-- 


*Adrián Roselló Rey Distributed Applications and Networks Area (DANA) i2CAT
Foundation, Barcelona, Spain*

Reply via email to