- Install maven-openfire-plugin from https://github.com/srt/maven-openfire-plugin
- Obtain a copy of
openfire.jarand install it into maven. There are serveral ways you can do it, here are two of them:
-
Option 1. Download source code of the version of openfire you need at http://www.igniterealtime.org/downloads/source.jsp
Then set
$OPENFIRE_PATHand$OPENFIRE_VERSIONenvironment variables according to source code path and version and run:cd $OPENFIRE_PATH/build ant mvn install:install-file -DgroupId=org.igniterealtime.openfire -DartifactId=openfire -Dversion=$OPENFIRE_VERSION -Dpackaging=jar -DgeneratePom=true -Dfile=$OPENFIRE_PATH/target/openfire/lib/openfire.jar
-
Option 2. If you installed openfire using
openfire*.debpackage on ubuntu, you can findopenfire.jarinside/usr/share/openfire/lib:Because this directory is read protected from regular users, you would first have to copy it to somewhere in your home directory and change it's read permissions using sudo, e.g by running:
sudo cp /usr/share/openfire/lib/openfire.jar . sudo chmod a+r openfire.jarNow you can install it into maven by running:
mvn install:install-file -DgroupId=org.igniterealtime.openfire -DartifactId=openfire -Dversion=$OPENFIRE_VERSION -Dpackaging=jar -DgeneratePom=true -Dfile=openfire.jar
- Inside openfire-apns-plugin directory run:
mvn clean install - If the build was successfull
openfire-apns.jarshould appear intargetdirectory.