SPRING STS Virgo OSGI 开发一 : bundle 项目的创建

1. Spring STS 下载地址  (spring 最近改了站点 暂时不是太熟悉)
    http://spring.io/tools/sts/all

2. 下载 Virgo 插件
   http://download.eclipse.org/virgo/milestone/tooling

3. Eclipse 下载官方的 virgo + jetty 开发包

   http://www.eclipse.org/virgo/download/

4. 配置Virgo server
   Eclipse 中 
   Window --> Preferences --> server --> Runtime Enviroments --> add --> EclipseRT --> server install directory 指定即可

---------------------------------------------------------------------------------------------------------

ECLIPSE STS 中对于OSGI 开发提供了很多支持,刚开始接触的时候可能会混淆使用 下面的操作请严格按照流程执行

下面是virgo EclipseRT 项目 的配置 (不是PLUGIN)

5. new project --> virgo --> Bundle Project  填写名称

   如果是web 就勾选  WEB application bundle / 需要填写web-contextPath (其他默认) ------------ finish 

   这样编辑你的Manifest.MF 吧


=================================================
並不是所有的jar 都可被识别为bundle的, 需要改造 提供spring 的一个库

http://ebr.springsource.com/repository/app/

原文地址:https://www.cnblogs.com/toSeeMyDream/p/4602604.html