Openfire插件编译问题 [英] Openfire Plugin compilation issue
问题描述
我正在尝试在eclipse中编译openfire,效果很好.在我需要编译插件之后.我通过了openfire的引用.
I'm trying to compile openfire in eclipse that is work fine.After i need to compile plugin.I pass reference of openfire.
此视频的引用
https://www.youtube.com/watch?v=KlMaBplFbuQ
和我的openfire结构在下面的图片中检查.
and my structure of openfire check in below image.
当我尝试使用ant进行构建时遇到问题.它要求我转到src和tool文件夹,但我将该目录放在了外部目录中.现在我正在尝试使用主目录进行构建,但仍然出现异常.
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.
推荐答案
不需要从Eclipse构建或编译插件.如果您使用 ant-build 构建openfire,则可以正常工作. 您只需确保已安装Ant并在系统中配置正确的路径即可.
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.
转到下载的openfire,然后将插件粘贴到openfire/src/plugin文件夹下.
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干净的openfire插件
或构建您可以通过的特定插件
or build specific plugin you can pass
ant -f build/build.xml干净的openfire插件-Dplugin = nameofyourplugin
构建后,您可以在此路径中检查插件.
after building you can check your plugin in this path.
\ openfire \ target \ openfire \ plugins
感谢希望能对您有所帮助.
Thanks hope this will help you.
这篇关于Openfire插件编译问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!