From IcedTea

Jump to: navigation, search


1 Building Thermostat on macOS

This will build thermostat, but (as of February 2017), many OS statistics remain unavailable.

Note: Ensure no build or install directories have spaces in them.

1.1 Prepare the environment

Install these programs:

  • XCode (tested with 8.2.1)
  • Maven (tested with 3.3.9)
  • Mercurial (tested with 3.8.2)
  • JDK 1.8
  • MongoDB 3.2 or higher (tested with 3.4.1)

Ensure that JAVA_HOME is set. This might be in a location such as /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
Ensure that the JDK, Maven and MongoDB bin directories appear in your path.

1.2 Build

   hg clone thermostat
   cd thermostat
   mvn -Dmaven.test.skip=true clean install

1.3 Run

   ./distribution/target/image/bin/thermostat local
Personal tools