I am a Permanent Member (or Community Ambassador) of the Drupal Association.The place to get nightly builds of the Solr project is http://people.apache.org/builds/lucene/solr/nightly/
It has been down for maintenance for over 24 hours which turned out to be very bad timing for me as I had just deleted my not-too-recent copy with the intent of testing the latest and greatest. This left me without any Solr available. Not to worry, building from source is painfully easy thanks to the awesomeness of Ant. Here’s how:
# Get the source code from the subversion repository.
svn co http://svn.apache.org/repos/asf/lucene/solr/trunk solrnightly
cd solrnightly
# This will launch the build process
ant example
# After the build finishes you can start the solr server.
# Move into the example directory...
cd example
# Now is the time to copy your solrconfig.xml and schema.xml
# into ./solr/conf
# And then start things up.
java -jar start.jar
The buildfile offers some other nice options. Type ant without any parameters to see all of them:
ant
Buildfile: build.xml
usage:
[echo] Welcome to the Solr project!
[echo] Use 'ant example' to create a runnable example configuration.
[echo] Use 'ant run-example' to create and run the example.
[echo] And for developers:
[echo] Use 'ant clean' to clean compiled files.
[echo] Use 'ant compile' to compile the source code.
[echo] Use 'ant dist' to build the project WAR and JAR files.
[echo] Use 'ant generate-maven-artifacts' to generate maven artifacts.
[echo] Use 'ant package' to generate zip, tgz, and maven artifacts for distribution.
[echo] Use 'ant luke' to start luke. see: http://www.getopt.org/luke/
[echo] Use 'ant test' to run unit tests.
Comments
Including Lucene source, in sync w/ Solr
Suppose you wanted to build everything from scratch, including the Lucene source code.
Do you know an easy way to get both Solr and Lucene code from Apache that match up correctly. Obviously you can just "svn co" the top level of both, but:
1: You'd want the Lucene source code to be the exact version that the Solr nightly build used.
2: You'd want to NOT use the Lucene jar file; instead you want it to be compiled as well
I have found some info online to do this, but seems oddly complicated. And this seems like something any plugin developer would need to do, so I'd expect it to be wiki'd and talked about more often.
Also, any notes about importing into Eclipse and/or debugging would be cool. Again, I've found info online, but less than straightforward.
Sorry - haven't needed to do that
Hopefully someone will report back with their experiences.
-Rob
Post new comment