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

sgrouples/sbt-solr-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solr plugin for sbt

Allows to start solr from sbt in a separate jvm

Usage:

  1. 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/"
  1. Enable pluing for your project

build.sbt:

enablePlugins(SolrPlugin)
  1. Put configuration in src/main/resources/solr/

  2. Start solr

solrStart

Tasks:

solrStart - start solr solrStop - stop solr

Configuration

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

About

Sbt plugin to start solr with a task

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages