Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Installation from source

skogler edited this page Feb 10, 2012 · 7 revisions

Prerequisites

  • Java 6 or higher
  • Apache Maven build tool
  • Apache Tomcat 6 or higher
  • MySQL Database(for code analyzing support)

Basic setup

  1. Make sure you have everything listed above.
  2. Get the source code.
  3. Switch to the src directory.
  4. Execute
mvn clean package -DskipTests=true
  1. Copy
src/indexer/target/codesearch-indexer-{version}.war
src/searcher/target/codesearch-searcher-{version}.war

to your Tomcat webapps directory. Note that the file name of the war files usually defines the URI at which the application is deployed.

  1. Copy resources/codesearch-config.xml to your Tomcat lib directory
  2. Edit the configuration as described in configuration.
  3. Run your Tomcat
  4. Go to {tomcat-address}/codesearch-searcher-{version}