https://github.com/shrhdk/openfire-plugin-example
Building the Openfire plugin with Gradle.
https://github.com/shrhdk/openfire-plugin-example
gradle openfire openfire-plugin
Last synced: about 2 months ago
JSON representation
Building the Openfire plugin with Gradle.
- Host: GitHub
- URL: https://github.com/shrhdk/openfire-plugin-example
- Owner: shrhdk
- Created: 2016-11-12T09:44:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T06:43:34.000Z (almost 6 years ago)
- Last Synced: 2025-03-23T18:52:03.856Z (2 months ago)
- Topics: gradle, openfire, openfire-plugin
- Language: Java
- Size: 56.6 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openfire-plugin-example
Building the [Openfire plugin](http://download.igniterealtime.org/openfire/docs/latest/documentation/plugin-dev-guide.html) with Gradle.
Project Structure:
```
openfire-plugin-example/
|-- openfire/
|-- src/
|-- main/
|-- java/**/*.java
|-- resources/
|-- database/
|-- i18n/
|-- web/
|-- plugin.xml
|-- readme.html
|-- changelog.html
|-- logo_small.gif
|-- logo_large.gif
```Checkout this project:
```sh
$ git clone https://github.com/shrhdk/openfire-plugin-example
```Download and extract [Openfire](https://www.igniterealtime.org/downloads).
```
openfire-plugin-example/
|-- openfire/ <- extracted
|-- README.html
|-- ...
```Build and deploy this project:
```sh
$ ./gradlew deployJar
```As a result `example.jar` will be built:
```
openfire-plugin-example/
|-- build/
|-- distributions/
|-- example.jar <- built
```And `example.jar` will be copied to `plugins` directory:
```
openfire-plugin-example/
|-- openfire/
|-- plugins/
|-- example.jar <- copied
```Launch Openfire:
```sh
$ openfire/bin/openfire run
Openfire 4.0.3 [Nov 12, 2016 4:44:25 PM]
Admin console listening at:
http://localhost:9090
https://localhost:9091
ExampleComponent initialzie, JID: example.localhost
```
(**Set up the openfire from admin console (http://localhost:9090) at the firsttime.**)