To build UADetector yourself you need a JDK 1.6 or above and Apache Maven 3.x. To resolve the transitive dependencies you must be online.
To build UADetector you have to run the command
mvn package
in your command-line interface or IDE.
This will compile all the Java files, run any tests, and package the deliverable code and resources into
(assuming the recent version is 2014.04-SNAPSHOT and 0.9.16-SNAPSHOT.)