When i build a plugin, the jar file names inside lib directory of plugin ends with “.pack”. And i have to modify it manually to create a proper plugin build.
Steps which am following to create a proper plugin build :
Create a plugin build using eclipse.
A plugin jar is created in this locaiton “/openfire/target/openfire/plugins/*.jar”
Inside the jar there is a ‘lib’ directory where all the jar files names ends with ‘*.jar.pack’.
Run the openfire server.
Now a plugin directory is generated in this location “/openfire/target/openfire/plugins”
And in ‘lib’ directory the jar files will be created without “.pack” extension.
Now am modifying my plugin jar by removing all the files from “lib” directory which has “.pack” extension and adding the proper jar file which got created after running the openfire.
Can we modify the build.xml file to generate proper plugin in one go?
I looked in my openfire target folder. And my plugin.jars have no *.jar.pack files.
I am using OpenFire 3.9.3 Source / 3.9.10-Beta Source , and the included ant build scipts. After using openfire ant build script, i start the plugins buildscript and get working plugin.jar files.
My Plugin jar’s doesn’t have “.pack” extension. Files inside the plugin jar has files with “.pack” extension.
I can seen in the build script in too many place “.pack” is mentioned. Not even the plugin which i have created all the other plugins with is there in Openfire also has files with “.pack” extension.
Can you please explain steps which you follow to create plugin build?
Am working on 3.9.3, I can see lots of changes between your build.xml and mine. Is the issue is there in 3.9.3 or am doing it wrong. Please help me to solve this.
And i also managed to import OpenFire 3.9.3 Sources Files form the zip file offered on the main page into Intellij as project(with some try and failers for configure the project).
But i used the same steps to develope the plugins.
I only took the 3.10 because all plugins are included with newest source files.
UPDATE:
JUST for Testing i downloaded openfire 3.9.3 and try to import as project. And my created plugin jar files have this *.jar.pack ending now.
But i know that i mange to create clean jar files fith the 3.9.3. source files.
So the problem is, how you import this project. But i dont remember the right steps for correct import of the project.
UPDATE2:
Found out that if your change the build.xml
from
to
will disbale the pack function. So that the plugins have clean jars inside.