开发环境
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
# 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、待续。。。