Setup Solr Trunk Development Environment using Eclipse

You need to have the following software installed

  • subversion
  • ant
  • eclipse

Now the install procedure

  1. Checkout the source code
       svn co https://svn.apache.org/repos/asf/lucene/dev/trunk/
    
  2. cd to the trunk folder and run
    ant ivy-bootstrap
    ant resolve
    ant validate
    ant clean-idea
    ant eclipse
    ant compile
    ant test
    
  3. Start Eclipse and Import the Project
  4. Install the run-jetty plugin. Add the update site (http://run-jetty-run.googlecode.com/svn/trunk/updatesite) and install run-jetty
  5. Add a Run configuration for a Jetty Webapp
    • Jetty Version 6.1.26
    • Port 8080
    • Context /trunk
    • WebApp dir solr/webapp/web
    • Arguments/VM arguments
      -Dsolr.solr.home=/home/patrick/Desktop/solr/trunk/solr/example/solr
      -Dsolr.test.sys.prop1=hallo
      
  6. Save and run that configuration
  7. Start any webbrowser and visit: http://localhost:8080/solr/

Leave a comment

Your email address will not be published. Required fields are marked *