Skip to content
Frank Purcell edited this page Jul 19, 2011 · 11 revisions

BUILD OTP (on your local PC)


======================

  1. install apache maven -- IMPORTANT: you need a recent mvn version (eg: 2.2.1), else you'll run into a lot of problems that are hard to debug (I've made this mistake twice...grr).

  2. svn co https://svn.opentripplanner.org/trunk opentripplanner

  3. edit the following:

  • opentripplanner/opentripplanner-integration/pom.xml (~line 148 ... change comments so that cargo.jvmargs is pointing to the longer debug argument string)

  • opentripplanner/opentripplanner-gui/pom.xml (!line 63 ... comment out the huge waste of time jar-with-dependencies plugin)

  • opentripplanner/opentripplanner-graph-builder/pom.xml (!line 93 ... comment out the huge waste of time jar-with-dependencies plugin)

  1. Edit two XML files in /opentripplanner/opentripplanner-integration/src/main/resources/(graph-builder.xml & data-sources.xml). We want to have the graph in a reliable place on both development and production servers. I designated this:

     <property name="path" value="/home/otp/graph" />
    

NOTE: if you don't have either of these XML files in /opentripplanner/opentripplanner-integration/src/main/resources, look in the directory /opentripplanner/opentripplanner-integration/src/defaults/resources/ and edit the files there.

  1. mvn integration-test -DskipTests (NOTE: case is very important here)

  2. http://localhost:8080/opentripplanner-api-webapp/ws/plan?fromPlace=45.52123,-122.67611&toPlace=45.514284,-122.68019



SERVER SETUP of OTP


======================

  1. Move the following over to the server (that has TOMCAT installed on it):
  • Contents of folder (c:)/home/otp/graph to server (same path)

  1. xxx
Clone this wiki locally