Skip to content

EmbeddedHiveMQ incompatible with hivemq-mqtt-client #579

@rod2j

Description

@rod2j

Expected behavior

HiveMQ community edition provides to embed an HiveMQ instance in your own Java application.
Following README.md instructions we are actually able to start HiveMQ embedded within a Java 21 application.
But our usecase is to do so for integration tests of our application which is an MQTT client using HiveMQ mqtt-client lib.

So we expected to be able to start in the same JVM an Embedded HiveMQ and a MQTT client with HiveMQ mqtt-client lib.

Actual behavior

Embedded HiveMQ broker doesn't start as soon hivemq-mqtt-client in the classpath,
probably because of conflicting Google GUICE dependencies between HiveMQ broker and HiveMQ client as reported
in #276 which has been closed for unknown reason.

Not being able to use HiveMQ embedded for testing, does grandly limit the use cases of HiveMQ embedded.

Details

  • Affected HiveMQ CE version(s): 2025.3
  • HiveMQ MQTT client version: 1.3.5
  • Used JVM version: 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions