New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded broker as maven dependency #19
Comments
Hi @dowhiletrue, We see the need for something like that, but are right now not sure how to best tackle the issue. Internal considerations are ongoing at the moment. We will keep the issue open and track progress once decisions are made. Kind regards |
I am also interested in this feature. I would prefer it be compatible with Spring (or at least not preclude it), so I can integrate with other standard systems (logging, actuator, RestTemplate, caching, permissions, spring security, maybe jms...). Eg. for implementing hivemq extensions. While some of this can be done by splitting things into microservices, integration tests are much easier if I can recombine all that into a compound application. I guess I could modify HiveMQServer.java. |
Any further feedback here guys? There are a bunch of projects looking to transition away from moquette but maven dependency support would seem to be a pretty common prerequisite. |
I also need to be able to use maven to get HiveMQ CE as an embedded broker. Any timeline for either maven or gradle support? |
Having the same problem - been looking for a solution for a while. Any ETA? |
Has there been any progress on this? I have been waiting on this for a while. |
Hi, There now exists an official docker image for HiveMQ CE. Now you can use the Testcontainers project to pretty easily build a test dependency. Your custom container can look something like this:
I know that this does not solve every part of this issue, but it should be a starting point. Feel free to contact me if you have any questions. Georg |
Thanks for the heads-up - at least for my usecase (https://community.hivemq.com/t/hivemq-ce-as-maven-dependency/39) docker is not a solution. Should I open a separate issue for that? Do you have a roadmap for real maven integration? |
Well, I know its kind of side topic, however as you ask for maven centric solution I can bring one idea. ActiveMQ 5.x can be embedded with dedicated maven plugin and it has support for MQTT transport. It will be able to serve you as long as you need basic transport and not HiveMQ specific extensions on other side. |
We now have an embedded broker api in master, so this issue is closed. |
Problem or use case
I would like to test my mqtt client/broker setup using JUnit tests.
Since it is cumbersome to start a broker before running the tests, an embedded MQTT 5 compliant broker would ease up the testing.
Preferred solution or suggestions
The text was updated successfully, but these errors were encountered: