We recommend Ubuntu 14.04.
You can check your installed version via this command: (FYI: CTRL+ALT+t is a keyboard shortcut to open a terminal)
$ lsb_release -r
Release: 14.04
You can install via our script
$ bash < <(wget -qO- https://raw.githubusercontent.com/t-sdn/setup/master/install.sh)
# Or use shorted URL
$ bash < <(wget -qO- tinyurl.com/t-sdn-install)
Finally, Reload environment or rerun a terminal for configuring the ODL build environment.
$ source ~/.bashrc
You can clone our example project to test the build environment.
$ git clone https://github.com/t-sdn/example
$ cd example
$ mvn clean install
# If you want to skip test code, append "-DskipTests"
$ mvn clean install -DskipTests
Now, try to build Opendaylight controller.
Caution: OpenDaylight is a huge project. So you need very long time to build it. It consumes almost 2 hours on my machine at the first time.
# First, clone OpenDaylight repository
$ git clone https://github.com/opendaylight/controller opendaylight-controller
$ cd !$
# Build with same method
$ mvn clean install -DskipTests