honzeland

记录点滴。。。

常用链接

统计

Famous Websites

Java

Linux

P2P

最新评论

将Openfire导入到Eclipse中

1、 从Openfire SVN Server中dump出源码;
2、 Build: ant  & ant plugins
3、 将build后的target/openfire作为openfire_home
4、 在target/openfire下建立两个目录:src和classes,将dump下来的源码copy到src路径下,将classes设置为eclipse编译后的输出路径
5、 将$openfire_home/lib下的openfire.jar中src中存在的部分删除,剩下的部分作为新的openfire.jar,注意,在ubuntu下之间打开openfire.jar时,直接将/org/jivesoftware/admin, /org/jivesoftware/openfire, /org/jivesoftware/util三个目录删除,而对于/org/jivesoftware/database目录,只将源码中有的那部分删除,/org/jivesoftware下面还有一个隐藏目录/org/jivesoftware/stringprep,不能删除,接下来,将$openfire_home/lib下的jar包作为工程的Referenced Libraries.
6、 将取出来的工程下src/web/WEB-INF/classes/openfire_init.xml导入到eclipse的查询路径里,如将src/web/WEB-INF/classes目录作为eclipse的源目录,这样openfire_init.xml自动copy到$openfire_home/classses下面,将openfire_init.xml中的openfireHome设置为$openfire_home
7、 修改org.jivesoftware.openfire.starter.ServerStarter中的如下两个field,
           private static final String DEFAULT_LIB_DIR = "../lib";
           private static final String DEFAULT_ADMIN_LIB_DIR = "../plugins/admin/webapp/WEB-INF/lib";
改成:
           private static final String DIR_PREFIX = "$openfire_home";     // to be your own openfire_home
           private static final String DEFAULT_LIB_DIR = DIR_PREFIX + "lib";
           private static final String DEFAULT_ADMIN_LIB_DIR = DIR_PREFIX + "plugins/admin/webapp/WEB-INF/lib";

posted on 2008-01-25 17:36 honzeland 阅读(2457) 评论(5)  编辑  收藏 所属分类: Java

评论

# re: 将Openfire导入到Eclipse中 2008-03-09 09:58 bingoo

我也想研究学习下openfire,但一直无法进行调试,希望你能有空给予些帮助,QQ:786215301,谢谢  回复  更多评论   

# re: 将Openfire导入到Eclipse中 2008-03-11 22:42 honzeland

你可以参考http://www.igniterealtime.org/community/docs/DOC-1092来配置,还有很多的docs都能在community中找到  回复  更多评论   

# re: 将Openfire导入到Eclipse中 2008-04-02 11:19 openfire

非常感谢:)  回复  更多评论   

# re: 将Openfire导入到Eclipse中 2009-03-11 21:37 tao

是怎么导入的?加QQ讨论:987081914  回复  更多评论   

# re: 将Openfire导入到Eclipse中 2009-03-11 21:42 tao

怎么不可以啊?3.6.3版本的?  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: