virgo osgi 环境搭建总结

开发环境

Spring Tool Suite 3.2.0.RELEASE

maven 3.0.4

spring 3.0.5

virgo 3.5

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

virgo 配置:
configuration下修改
1、osgi.console.properties

telnet.enabled=true
telnet.port=2401
telnet.host=localhost
ssh.enabled=true
ssh.port=2402
ssh.host=localhost

2、新建config.properties

isDevMode=true
devLocations=E:\\workspaces_osgi\\

3、修改org.eclipse.virgo.repository.properties,添加maven本地仓库地址,配置后,开发的时候不需要将jar包复制到repository\usr下。

ext.type=external
ext.searchPattern=repository/ext/{artifact}

usr.type=watched
usr.watchDirectory=repository/usr

mvn.type=external
mvn.searchPattern=E:/maven_repo/**/{bundle}.jar

chain=ext,usr,mvn


4、修改org.eclipse.virgo.kernel.userregion.properties,替换最后一行,添加snaps支持

# the next line must not be broken with back-slashes
initialArtifacts=repository:plan/org.eclipse.virgo.kernel.userregion.springdm, repository:plan/org.eclipse.virgo.web.tomcat, repository:plan/org.eclipse.virgo.snaps  

5、在repository\ext下添加4个文件。

org.eclipse.virgo.snaps.plan

osgi.console.properties

org.eclipse.virgo.snaps.core-3.5.0.RELEASE.jar

org.eclipse.virgo.snaps.api-3.5.0.RELEASE.jar

(1)org.eclipse.virgo.snaps.plan

<plan name="org.eclipse.virgo.snaps" version="3.0.0" scoped="false" atomic="true"
      xmlns="http://www.springsource.org/schema/dm-server/plan"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			xsi:schemaLocation="
			http://www.springsource.org/schema/dm-server/plan 
			http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd">

        <artifact type="bundle" name="org.eclipse.virgo.snaps.api" version="[3, 4)"/>
        <artifact type="bundle" name="org.eclipse.virgo.snaps.core" version="[3, 4)"/>
</plan>

(2)osgi.console.properties

telnet.enabled=true
telnet.port=2501
telnet.host=localhost
ssh.enabled=true
ssh.port=2502
ssh.host=localhost
其他两个JAR包去google搜吧~

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

eclipse准备(STS)
1、添加maven插件

2、添加virgo插件

3、添加svn插件

4、创建maven项目,默认项目maven-archetype-quickstart


5、待续。。。



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值