Allows to start solr from sbt in a separate jvm
- Add solr to project/plugins.sbt:
addSbtPlugin("me.sgrouples" % "solr-plugin" % "0.4.1")
also add repository to project/plugins.sbt:
resolvers += "sgrouples custom builds" at "https://raw.github.com/sgrouples/mvn-repo/master/"
- Enable pluing for your project
build.sbt:
enablePlugins(SolrPlugin)
-
Put configuration in src/main/resources/solr/
-
Start solr
solrStart
solrStart
- start solr
solrStop
- stop solr
solrPort := 8983
to run on
solrConfigHome := src/main/resources/solr
folder where solr configuration lives
solrRunFolder := target/solr
working directory where solr will run
solrContext := /solr
http context