2015-06-08 45 views
0

我能夠在servicemix項目中找到4.1.6的spring bundle,但是我沒有看到spring osgi擴展器。我能夠找到的擴展器只有1.2.1版本,並提供以下錯誤。彈簧DM擴展器4.1.6在哪裏?

2015-06-08 23:33:33 FATAL Launcher:383 - Could not create framework: org.osgi.fr 
amework.BundleException: Unresolved constraint in bundle 5: package; (&(package= 
org.springframework.beans)(version>=2.5.6)(!(version>=4.0.0))) 
org.osgi.framework.BundleException: Unresolved constraint in bundle 5: package; 
(&(package=org.springframework.beans)(version>=2.5.6)(!(version>=4.0.0))) 

我看到1.2.1排除春季版4.0+所以應該有什麼包要使用春4.1.6得到它自動創建春OSGi bundle了環境?

回答

0

似乎有可能從源代碼構建擴展器。

git clone https://github.com/eclipse/gemini.blueprint.git 
git checkout ac963cca7caa31d4ee43a567a427763cccadc1b0 
mvn compile 
mvn package 

這產生3束可以在IO /靶,核/靶,和擴展器/目標中找到,其中的每一個似乎是必要的。

在我的測試主機應用程序中,我需要導出org.apache.commons.logging和org.xml.sax來加載它。

這不是一個理想的解決方案,但工作。