【发布时间】:2015-11-08 15:04:13
【问题描述】:
我正在尝试安装一个带有 apache-karaf 2.3.10 的 OSGi 包,我已经在 link 中发布了示例。我做了以下步骤
1. Downloaded apache-karaf version 2.3.10
2. Executed the command features:install scr. Successfully installed scr. I have verified by executing scr:list
3. Installed all the bundles
4. Finally after starting all the bundles activate method in ExampleComponentFactoryManager called twice and two objects are created. I have verified the same by executing the command scr:list
5. After uninstalling the scr feature the activate method in ExampleComponentFactoryManager called only once which is the expected behaviour.
6. Also i have noted that upto apache-karaf-2.3.10 while installing the scr feature it fetches from the online repo. But from 2.3.11 i am getting error because it tries to fetch it from my maven repository. The error is shown the console.
谁能告诉我 karaf 中的功能 scr 发生了什么? 因为有了 scr 功能,我可以看到 karaf 中有哪些可用的工厂和实例。这是预期的吗?
【问题讨论】:
标签: java osgi apache-karaf karaf