1. Download: Address
2. Extract to the current folder Openfire_src, into the Openfire_src>build>eclipse directory, the inside settings, Classpath, project three files copied to Openfire_ src directory and rename them with the Windows command line:
Rename settings. settings, rename classpath. Classpath, rename Project. Project.
3. Import project into eclipse, found some errors, some jar package missing.
Don't worry, remove the error jar package directly, and then build>lib all the jars underneath the jar including the jar inside the folder.
In this way, the whole project will not be an error. If a red warning appears when run as is running the project, delete the conflicting jar package.
4. In the build path configuration, add the/openfire_src/src/i18n,/openfire_src/src/resources/jar,/openfire_src/build/lib/dist folders to the Source, as shown in figure:
For the rest, follow the diagram below to complete the operation:
-dopenfirehome= "${workspace_loc:openfire_src}/target/openfire"
Note: Project Path ${WORKSPACE_LOC:OPENFIRE_SRC}
Then, compile the entire project with Ant:
After that, you can run the project.
=============================================================================================
If you want to compile a plugin individually:
${workplace_loc:/openfire_src/build/build.xml}
-dplugin=myplugin
You can also use a different method to compile the plugin separately: