Rebuild the whole server. Integrated MQTT and use HTTP (with a built-in server) only for server/server communication. This server does not run as servlet anymore.
Updated pom.xml.
Updated pom.xml.
Corrected pom.xml.