Openfire password reset plugin
This plugin provides the ability for users to reset their own passwords by sending a unique link to
the email address associated with their account.
Building the plugin
gradlew build
Installing the plugin manually
- Uninstall any existing version of the plugin from Openfire
- Rename the newly built file
build/libs/PasswordReset-${version}-openfire-plugin-assembly.jar
to
passwordreset.jar
- Copy
passwordreset.jar
to the plugins folder of Openfire
Installing the plugin from Gradle
Simply run
gradlew deploy
This task will perform the following steps to install the plugin:
- Assemble the plugin - note that this will not perform any checks on the code so you may want to
add
check
as an additional task at the command line.
- Delete any existing plugin in the Openfire plugins directory.
- Wait for the old plugin to be uninstalled from Openfire.
- Copy the newly built plugin in to the plugins directory.
- Wait for the new plugin to be installed to Openfire.
Notes;
- The task requires the
OPENFIRE_HOME
environment variable to be set to the location of the
Openfire installation.
- It goes without saying that Openfire needs to be running in order for step 3 above to work!
- An issue with Jetty may mean that
Openfire is unable to uninstall the existing plugin if you are running Java 9 or higher.
- By default Openfire will only check the plugins folder for changes every 20 seconds. You can
speed up steps 3 and 5 above by setting the System Property
plugins.loading.monitor.interval
to a
smaller value, e.g. a value of 1
will tell Openfire to check the plugins folder for changes every
second.