Openfire4.5源代码调试

1.官网:http://igniterealtime.org/

2.源码:https://github.com/igniterealtime/Openfire.git
3.Spark下载 :http://igniterealtime.org/downloads/index.jsp#openfire

4.Openfire导入Intellij Idea并启动,调试

(1)使用最新版本Maven,当前为3.6.2

(2)导入Openfire源码到Idea,以Maven项目导入

(3)确定使用的JDK为8及以上

(4)控制台运行 mvn clean verify -pl distribution -am -DskipTests=true,需要提前将Maven加入到Path变量

(5)编译完成后,设置运行程序的vm 参数:-DopenfireHome=distribution/target/distribution-base -Dopenfire.lib.dir=distribution/target/distribution-base/lib -Dfile.encoding=UTF-8

(6)启动 starter项目中的ServerStarter,根据需要选择Run或Debug

(7)通过Openfire控制台http://127.0.0.1:9090安装Openfire

发布了250 篇原创文章 · 获赞 7 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/bsr1983/article/details/103124131