我从 http://maksim.sorokin.dk/it/2011/07/19/maven-apache-felix-easy-development-and-debugging-with-eclipse/ 中获取了示例我想扩展它添加另一个包:
felix.auto.deploy.action=install,start
felix.log.level=1
org.osgi.framework.storage.clean=onFirstInit
felix.auto.start.1 = \
assembly:../test.bundle/target/classes
assembly:../test2.bundle/target/classes
但是,只有第一个包开始(添加带有\分隔符的行也不起作用)。
这也不起作用:
felix.auto.start.2 = \
assembly:../test.bundle/target/classes
所以我最终只能启动一个 bundle 。不是一个非常 OSGi 的概念。
我在这里做错了什么?
最佳答案
在\分隔符后添加一个额外的空格,像这样编写你的配置
felix.auto.deploy.action=install,start
felix.log.level=1
org.osgi.framework.storage.clean=onFirstInit
felix.auto.start.1 = \
assembly:../test.bundle/target/classes \
assembly:../test2.bundle/target/classes
关于java - 多个 bundle 以 apache felix config.properties 启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41940665/