You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by j3rem1e <je...@gmail.com> on 2015/11/30 17:16:22 UTC
Karaf 4.0.3 : Features resolution is not consistent ?
Hello,
I am playing with Karaf 4.0.3, and i have a strange behavior with the
feature resolver. I define a feature like this :
<feature name="test" version="1.0-SNAPSHOT">
<feature version="[3.2,4)">spring</feature>
<feature>spring-dm</feature>
<feature>
When i start a new container (without the data folder), randomly, Karaf
install Spring 3.1.4 and Spring 3.2.14. On my machine, this happens really
often, and seem related to multithreading issues (when my machine slow down,
this happen every times). I have actived the traces on debug level, but i
haven't seen anything related to the resolution process.
it's maybe related to this discution :
http://karaf.922171.n3.nabble.com/KAR-deployment-in-Karaf-4-0-3-fails-with-varying-errors-td4043649.html
Thanks for your help!
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-3-Features-resolution-is-not-consistent-tp4043910.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf 4.0.3 : Features resolution is not consistent ?
Posted by j3rem1e <je...@gmail.com>.
Hello,
After more investigation, i think my issue comme from the conditional in the
spring features :
"mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.spring/4.0.3"
all spring features declare a conditional on this bundle.
In my resolution chain :
- spring-dm has a requirement on spring-dm-condition-deployer ;
- spring-dm-condition-deployer has a requirement on
org.apache.karaf.deployer.spring/4.0.3
- i have 4 candidates for this bundle (with respectively a requirement on
the feature spring/3.1.4, spring/3.2.14, spring-dm/1.2.1 and deployer/4.0.3)
The candidates don't seem to be ordered, and the resolver use only the first
capability in the list. randomly, i have spring 3.1.4+spring 3.2.14, or only
spring 3.2.14
This issue prevent my to use Karaf 4.0.3 : The next time i install a
feature, the resolver uninstall Spring 3.1.4, uninstall unrelated bundles
(jms, jdbc drivers..), and refresh all the bundles. After that, my container
is obviously in an incoherent state...
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-3-Features-resolution-is-not-consistent-tp4043910p4043952.html
Sent from the Karaf - User mailing list archive at Nabble.com.