Openfire开发环境搭建
在这个搭建过程中,重点是需要用到几个包和一个奇怪的错误,其他没有什么难点。
Jdk: 1.8.0_92
- Downloads
- openfire_src_4_0_4.zip
-
1 2 3 4 5 6 7 8 9 10 11
## unzip openfire_src_4_0_4.zip to your eclipse workspace 注意:不要修改openfire_src的名字 ## open eclipse,new project with name[openfire_src], and finish 注意:这个地方openfire_src文件是绝对路径。 ## add below 4 files to "\openfire_src\build\lib" and "add to build path". 1. coherence.jar 2. coherence-work.jar 3. tangosol.jar 4. ant-1.8.1.jar
链接:4 files 密码:526v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"add to build path": selected jars, right click, choose Build Path >> Add to Build Path.
## Setup Ant
1. Window --> Show View --> Ant
2. Add Buildfiles >> choose file \openfire_src\build\build.xml
## Copy tools.jar
from \jdk1.8.0_92\lib to \jre1.8.0_92\lib
## run ant
## add jars with beow path to "Add to Build Path"
\openfire_src\target\openfire\lib\*.jar
## remove the rest complied error project from your work space.
Setup starter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
1. Run >> Run Configurations >> Java Application >> New >> Name: ServerStarter
2. Main Tab
Project: openfire_src
Main class: org.jivesoftware.openfire.starter.ServerStarter
choose "Include system libraries when searching for a main class".
3. Arguments Tab
VM arguments: -DopenfireHome="${workspace_loc:openfire_src}/target/openfire"
4. Class Tab
Choose "User Entries" >> Advanced >> Add Folders
a. src/i18n
b. src/resources
c.
5. Common Tab
Selected checkbox "Debug" and "Run".
6. Click apply, and run.
## Open http://127.0.0.1:9090
username:admin
password:admin
Spark开发环境搭建
1
2
3
4
5
6
7
8
9
## Setup starter
1. Run >> Run Configurations >> Java Application >> New >> Name: SparkStarter
2. Main Tab
Main class: org.jivesoftware.launcher.Startup
Stop in main
4. Class Tab
Choose "User Entries" >> Advanced >> Add Folders
a. /src/resources
参考资料
- Openfire和Spark本地开发环境搭建记要
- openfire插件开发环境搭建
- Openfire SVN + Eclipse 3.3 + Subversive Installation Guide
- Openfire Plugins Setup Guide For Eclipse
- openfire 搭建
- 技术笔记:XMPP之openfire+spark+smack
- Openfire开发配置,Openfire源代码配置,OpenFire二次开发配置
- Openfire+Spark源码开发环境搭建
- Openfire和Spark本地开发环境搭建记要
- 利用Openfire+spark+Smack实现XMPP即时通信