Saturday, 18 October 2014

Ignite Open fire Plugin

Open fire version :- Openfire 3.9.3
Maven version :- Maven-2.0.10

Download the Maven Openfire Plugin master branch from this link

Go to the Maven Openfire Plugin folder and execute the below command.
 mvn clean install
To write Ignite Openfire plugin we need openfire.jar. To get the openfire.jar go to the open fire server’s lib folder and copy it into the local folder.

Now add the openfire.jar into the maven local repository using below command. I downloaded the openfire.jar into the F folder and my open fire version is 3.9.3.
mvn install:install-file -DgroupId=org.igniterealtime.openfire -DartifactId=openfire -Dversion=3.9.3 -Dpackaging=jar -DgeneratePom=true -Dfile=F:\openfire.jar

Maven project structure and sample application will be avialable in below link.

After downloading the OpenfireSamplePlugin go to the root folder of OpenfireSamplePlugin and execute the below command.                                             
                        mvn clean install

This command will create the target folder with OpenfireSamplePlugin-0.0.1-SNAPSHOT.jar.

Now go to the open fire server management portal and upload the jar file.

NOTE:- If we got error like below please check the maven project structure. If we add webapp folder under src/main the error will be gone.
Failed to execute goal com.reucon.maven.plugins:maven-openfire-plugin:1.0.2-SNAPSHOT:jspc (default-jspc) on project OpenfireSamplePlugin: Failure processing jsps

No comments:

Post a Comment