Home > Archives > Openfire和Spark开发环境搭建

Openfire和Spark开发环境搭建

Publish:

Openfire开发环境搭建

在这个搭建过程中,重点是需要用到几个包和一个奇怪的错误,其他没有什么难点。

Jdk: 1.8.0_92

  1. Downloads
  2. openfire_src_4_0_4.zip
  3. openfire_src_4_0_4.tar.gz

    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

参考资料

  1. Openfire和Spark本地开发环境搭建记要
  2. openfire插件开发环境搭建
  3. Openfire SVN + Eclipse 3.3 + Subversive Installation Guide
  4. Openfire Plugins Setup Guide For Eclipse
  5. openfire 搭建
  6. 技术笔记:XMPP之openfire+spark+smack
  7. Openfire开发配置,Openfire源代码配置,OpenFire二次开发配置
  8. Openfire+Spark源码开发环境搭建
  9. Openfire和Spark本地开发环境搭建记要
  10. 利用Openfire+spark+Smack实现XMPP即时通信

声明: 本文采用 BY-NC-SA 授权。转载请注明转自: Ding Bao Guo