从openfire插件创建jar文件 [英] Create jar file from openfire plugin
问题描述
我需要自定义openfire插件,我为openfire制作了一个插件,但不知道如何编译.我遵循了很多教程,但没有用.
I need to customize openfire plugin and i have made one plugin for openfire but no idea how to compile.I have followed many tutorial but not working.
这里有一个视频用于编译openfire,但出现505错误.
Here is one video for compile openfire but got 505 error.
我已遵循官方教程,但无法编译.
I have followed official tutorial but not able to compile.
build\build.xml:238: Must use JDK 1.5.x or higher to build Openfire
忘记了这个例外.
不知道如何在不进行编译的情况下制作jar文件.如果使用,我也尝试过使用ant,但是存在一些问题.
Not get idea how can i make jar file with compilation or without.If with, I tried with ant as well but there is some problem.
我在这里是openfire问题和插件编译的堆栈.如果有人对这个问题有想法,请帮助我.预先感谢.
I'm stack here in openfire problem and compilation of plugin. If anybody have idea about this problem please help me. Thanks in advance.
推荐答案
不需要从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插件创建jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!