Skip to content

How to build the server

Matthew Buckton edited this page Mar 4, 2021 · 1 revision

Firstly you will need to clone the repo, since there are 2 sub-modules you will need to do a git clone that also recursively clones the sub modules

git clone --recurse-submodules https://github.com/Maps-Messaging/mapsmessaging_server.git 

This will clone the repository and the sub modules into directory called mapsmessaging_server.

To build the server you will need

  1. JDK13 or higher installed
  2. Maven installed

Then simply on *nix

export JAVA_HOME=<your java home>
export MAVEN_HOME=<your maven home>
export PATH=PATH=$JAVA_HOME/bin;$MAVEN_HOME/bin;$PATH
call mvn clean install --file eclipse-paho-mqtt-sn-udp-client/pom.xml -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7
call mvn clean install

or windows

set JAVA_HOME=<your java home>
set MAVEN_HOME=<your maven home>
set PATH=PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%
call mvn clean install --file eclipse-paho-mqtt-sn-udp-client/pom.xml -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7
call mvn clean install
Clone this wiki locally