Wiki
Clone wikimobilityfirst / GNRS_Installation
Get the GNRS Source code
Source for the Java-based server is contained within the MobilityFirst repository under gnrs/jserver. The MobilityFirst repository can pulled down using:
Use your <username> and enter your password if asked.
git clone https://<username>@bitbucket.org/nkiran/mobilityfirst.git
Build the Server JAR
Be sure you have Java 1.6 and Maven 2 or higher installed. On Ubuntu systems, you can do this with apt-get:
# Ubuntu 12.04
sudo apt-get install openjdk-7-jdk maven
# Ubuntu 10.04
sudo apt-get install openjdk-6-jdk maven2
Install Required External JARs
Next you have to install the external JAR dependencies. A handy Python script is provided to automate this task for you. Just run:
cd gnrs/jserver
python install-to-project-repo.py -i
When prompted, the version is "0.6" (option 2) and the artifactId is "patricia-trie" (option 1).
Once that's installed, you can compile and build the .jar file with:
mvn clean package
The first time you compile, Maven will automatically resolve and download all
dependencies (be sure you have internet access). It will then compile the
code and assemble the server JAR, placing the output in the target/
subdirectory.
Note: If you are building the .jar as root user, then some unit tests as part of the maven build (which assume non superuser install) may fail. If superuser install is preferred for some reason, you can bypass the tests (not recommended) as shown below:
mvn clean package -DskipTests=true
Updated