This maven plugin simplifies the development of HiveMQ plugins as it provides a simple way to package the plugin and executes it with HiveMQ.
<profiles>
<profile>
<id>RunWithHiveMQ</id>
<build>
<plugins>
<plugin>
<groupId>com.hivemq</groupId>
<artifactId>hivemq-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>hivemq</id>
<phase>package</phase>
<goals>
<goal>hivemq</goal>
</goals>
<configuration>
<hiveMQDir>
(1)
</hiveMQDir>
<systemPropertyVariables>
<foo>bar</foo>
</systemPropertyVariables>
<!-- e.g. activate jmx -->
<additionalPluginFiles>
<additionalPluginFile><hiveMQDir>/plugins/hivemq-jmx-metrics-plugin-3.1.0.jar</additionalPluginFile>
</additionalPluginFiles>
<!-- /activate jmx -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
-
Insert HiveMQ home directory
Name | Type | Required | Default | Description |
---|---|---|---|---|
|
String |
true |
Directory of the HiveMQ Jar-file |
|
|
String |
false |
{artifact-id}-{version}.jar |
Name of the plugin jar |
|
String |
false |
target |
Name of the directory, where the plugin jar is located |
|
boolean |
false |
true |
HiveMQ logging to standard output enabled |
|
boolean |
false |
false |
Should plugins be loaded, false for plugins are loaded, true for plugins are not loaded |
|
String |
false |
SERVER |
Mode of the debugger: CLIENT, SERVER, NONE |
|
String |
false |
localhost |
Used in CLIENT debugMode |
|
String |
false |
5005 |
Port on which HiveMQ in debug mode and IDE connect |
|
String |
false |
hivemq.jar |
Name of the HiveMQ Jar-file |
|
String |
false |
List of system properties propagated to HiveMQ on startup |
|
|
File |
false |
List of additional hivemq plugin files used by HiveMQ |