Openfire - Set Up for plugin development using Maven
Following are the steps which i have followed for setting up development environment for plugin development
1) Download latest nightly build or any stable build
below is the link
https://www.igniterealtime.org/downloads/nightly_spark.jsp
2) Extract tar file into the folder
cd into folder
cd openfire/bin
Start the openfire by executing the below command from bin directory.
sudo ./openfire.sh
Follow the installation steps, if you already has old installation and need to the existing users, select same database name and skip the password setting.
Verify openfire installation by login in to the admin dashboard.
3) I will be setting up plugin development in separate workspace, copy the plugin directory which we need to customize in to this workspace, then
cd into this project
execute the following commands
mvn clean install
mvn eclipse:eclipse
Then export this project in to the eclipse. Do the changes and build the plugin by
mvn clean install
This will generate the jar file in target folder
Plugin customisation is done.
4) Deploy the plugin to the openfire.
Login to the openfire admin dashboard.
Select Plugin tab, click the Choose file button and select the plugin jar file which you have build in above steps. The click upload plugin button to deploy the plugin.
The updated plugin is deployed into the openfire.
Following are the steps which i have followed for setting up development environment for plugin development
1) Download latest nightly build or any stable build
below is the link
https://www.igniterealtime.org/downloads/nightly_spark.jsp
2) Extract tar file into the folder
cd into folder
cd openfire/bin
Start the openfire by executing the below command from bin directory.
sudo ./openfire.sh
Follow the installation steps, if you already has old installation and need to the existing users, select same database name and skip the password setting.
Verify openfire installation by login in to the admin dashboard.
3) I will be setting up plugin development in separate workspace, copy the plugin directory which we need to customize in to this workspace, then
cd into this project
execute the following commands
mvn clean install
mvn eclipse:eclipse
Then export this project in to the eclipse. Do the changes and build the plugin by
mvn clean install
This will generate the jar file in target folder
Plugin customisation is done.
4) Deploy the plugin to the openfire.
Login to the openfire admin dashboard.
Select Plugin tab, click the Choose file button and select the plugin jar file which you have build in above steps. The click upload plugin button to deploy the plugin.
The updated plugin is deployed into the openfire.

No comments:
Post a Comment