[OSGI Felix ] Intellij Idea 15 中开发 Maven osgi 项目(Apache felix环境)

原创
2018/09/07 00:36
阅读数 32

[OSGI] Felix基本环境搭建及操作 : https://blog.csdn.net/hechaomax/article/details/42641643

Intellij Idea 15中开发Maven+osgi项目(Apache felix环境):
https://blog.csdn.net/Primary_wind/article/details/51814237

开发一个真实的 OSGi 应用程序:

http://www.cnblogs.com/lw900320/archive/2012/06/26/2563221.html

Springboot Application 集成 OSGI 框架开发:

https://www.ibm.com/developerworks/cn/java/j-springboot-application-integrated-osgi-framework-development/index.html

felix-framework-6.0.1 jack$ java -jar bin/felix.jar 
____________________________
Welcome to Apache Felix Gogo

g! lb                                                                                                                                                                        00:27:01
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (6.0.1)|6.0.1
    1|Active     |    1|jansi (1.17.1)|1.17.1
    2|Active     |    1|JLine Bundle (3.7.0)|3.7.0
    3|Active     |    1|Apache Felix Bundle Repository (2.0.10)|2.0.10
    4|Active     |    1|Apache Felix Gogo Command (1.0.2)|1.0.2
    5|Active     |    1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0
    6|Active     |    1|Apache Felix Gogo Runtime (1.1.0)|1.1.0
g!                                                                                                                                                                           00:27:10
g! lb                                                                                                                                                                        00:28:28
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (6.0.1)|6.0.1
    1|Active     |    1|jansi (1.17.1)|1.17.1
    2|Active     |    1|JLine Bundle (3.7.0)|3.7.0
    3|Active     |    1|Apache Felix Bundle Repository (2.0.10)|2.0.10
    4|Active     |    1|Apache Felix Gogo Command (1.0.2)|1.0.2
    5|Active     |    1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0
    6|Active     |    1|Apache Felix Gogo Runtime (1.1.0)|1.1.0
g! lb                                                                                                                                                                        00:28:29
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (6.0.1)|6.0.1
    1|Active     |    1|jansi (1.17.1)|1.17.1
    2|Active     |    1|JLine Bundle (3.7.0)|3.7.0
    3|Active     |    1|Apache Felix Bundle Repository (2.0.10)|2.0.10
    4|Active     |    1|Apache Felix Gogo Command (1.0.2)|1.0.2
    5|Active     |    1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0
    6|Active     |    1|Apache Felix Gogo Runtime (1.1.0)|1.1.0
g! lb                                                                                                                                                                        00:28:30
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (6.0.1)|6.0.1
    1|Active     |    1|jansi (1.17.1)|1.17.1
    2|Active     |    1|JLine Bundle (3.7.0)|3.7.0
    3|Active     |    1|Apache Felix Bundle Repository (2.0.10)|2.0.10
    4|Active     |    1|Apache Felix Gogo Command (1.0.2)|1.0.2
    5|Active     |    1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0
    6|Active     |    1|Apache Felix Gogo Runtime (1.1.0)|1.1.0
g! lb                                                                                                                                                                        00:28:32
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (6.0.1)|6.0.1
    1|Active     |    1|jansi (1.17.1)|1.17.1
    2|Active     |    1|JLine Bundle (3.7.0)|3.7.0
    3|Active     |    1|Apache Felix Bundle Repository (2.0.10)|2.0.10
    4|Active     |    1|Apache Felix Gogo Command (1.0.2)|1.0.2
    5|Active     |    1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0
    6|Active     |    1|Apache Felix Gogo Runtime (1.1.0)|1.1.0
g!                                                                                                                                                                           00:28:33
g!                                                                                                                                                                           00:29:09
g!                                                                                                                                                                           00:29:09
g! install file:/Users/jack/soft/felix-framework-6.0.1/plugins/client-1.0-SNAPSHOT.jar                                                                                       00:29:10
Bundle ID: 7
g! install file:/Users/jack/soft/felix-framework-6.0.1/plugins/server-1.0-SNAPSHOT.jar                                                                                       00:30:28
Bundle ID: 8
g! lb                                                                                                                                                                        00:30:46
START LEVEL 1
   ID|State      |Level|Name
    0|Active     |    0|System Bundle (6.0.1)|6.0.1
    1|Active     |    1|jansi (1.17.1)|1.17.1
    2|Active     |    1|JLine Bundle (3.7.0)|3.7.0
    3|Active     |    1|Apache Felix Bundle Repository (2.0.10)|2.0.10
    4|Active     |    1|Apache Felix Gogo Command (1.0.2)|1.0.2
    5|Active     |    1|Apache Felix Gogo JLine Shell (1.1.0)|1.1.0
    6|Active     |    1|Apache Felix Gogo Runtime (1.1.0)|1.1.0
    7|Installed  |    1|client (1.0.0.SNAPSHOT)|1.0.0.SNAPSHOT
    8|Installed  |    1|server (1.0.0.SNAPSHOT)|1.0.0.SNAPSHOT
g! start 7                                                                                                                                                                   00:31:02
----------------hello client start---------------------
Service:Hello---not exists
----------------hello client start---------------------
g! start 8                                                                                                                                                                   00:31:13
----------------hello start---------------------
----------------hello start---------------------

https://github.com/Jason-Chen-2017/osgi-helloworld

本文分享 CSDN - 东海陈光剑。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部