Newton: Building from Source
This page describes how to build Newton from source code.
The latest source code can be checked out from the Newton source repository, or a source distribution can be obtained from the Downloads page.
Software required to build Newton
The software required to build Newton is summarized in the table below:
| Software | Download URL |
|---|---|
| Apache Ant 1.7.0 or later | http://ant.apache.org/bindownload.cgi |
| Apache Maven 2.0.8 or later | http://maven.apache.org/download.html |
| Java JDK 5 or 6 | http://java.sun.com/javase/downloads/ |
Maven Preparation
The Newton build requires the local Maven repository to be initialised:
cd src mvn -f assemble/prepare/pom.xml package
Note
You only need to do this once, or after you destroy ~/.m2/repository.
Build targets
To build Newton, change directory to the top of the Newton tree, then run:
ant
This creates a full distribution, including the examples, in the src/target/newton-dist.dir directory.
Note
See src/README for details of running Maven goals directly.


