Openfire Plugin compilation issue

允我心安 提交于 2020-01-07 03:57:18

问题


I'm trying to compile openfire in eclipse that is work fine.After i need to compile plugin.I pass reference of openfire.

Reference of this video

https://www.youtube.com/watch?v=KlMaBplFbuQ

and my structure of openfire check in below image.

I got issue when i tried to build with ant.It ask me go to src and tool folder but i put that outside directory.Now i'm trying to build with main directory but still got exception.

I'm not able to give accurate path of main directory while building tool folder as well. This is problem.

Somebody have idea about this issue please help me.


回答1:


There is no need to build or compile plugin from eclipse.If you use ant-build for build openfire then it work fine. Just you make sure, Ant is installed and configure proper path in your system.

Go to your downloaded openfire and paste your plugin under openfire/src/plugin folder.

Go command line, you can pass command

ant -f build/build.xml clean openfire plugins

or build specific plugin you can pass

ant -f build/build.xml clean openfire plugin -Dplugin=nameofyourplugin

after building you can check your plugin in this path.

\openfire\target\openfire\plugins

Thanks hope this will help you.



来源:https://stackoverflow.com/questions/36332971/openfire-plugin-compilation-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!