An open API service indexing awesome lists of open source software.

https://github.com/mycore-org/solr-runner-maven-plugin

This Plugin is just a wrapper for SOLR and some extra mojos.
https://github.com/mycore-org/solr-runner-maven-plugin

java-8 maven maven-plugin solr solr-runner

Last synced: about 1 year ago
JSON representation

This Plugin is just a wrapper for SOLR and some extra mojos.

Awesome Lists containing this project

README

          

# solr-runner-maven-plugin

This plugin is just a wrapper for SOLR and some extra mojos. It downloads SOLR to the local repository
`~/.m2/repository/solr-7.7.3/`. It will be started from there, but the path to the solr home will be changed with the
solr -s parameter.
```
~/.m2/repository/solr-7.7.3/bin/solr start -p 8983 -s ~/my-solr-location
```

Works with SOLR 6, 7, 8.

## solr-runner:start & solr-runner:stop
Downloads SOLR to local repository and extract it, if it is not present already(in repository).

```

org.mycore.plugins
solr-runner-maven-plugin
1.2-SNAPSHOT


http://apache.mirror.iphh.net/lucene/solr/


7.7.3


8983


${user.home}/solr

```

## solr-runner:copyHome
Can be used to copy SOLR home template from your project files to solr home location to keep your project files clean.

```

org.mycore.plugins
solr-runner-maven-plugin
1.2-SNAPSHOT


${user.home}/solr


${project.basedir}/src/main/resources/solrHome

```

## solr-runner:installSolrPlugins
This can be used to install plugins to specific cores in your SOLR home.
You need to define a plugin dependency.
```

org.mycore.plugins
solr-runner-maven-plugin
1.2-SNAPSHOT


my.amazing
solr-plugin
1.2





${user.home}/solr

...

```

And then you need to map the plugin to a specific Core.
```
...



mySolrCore
my.amazing:solr-plugin

...
```

## lifecycle mapping

You can bind those goals to run with your integration tests.

```
...


start-solr
pre-integration-test

copyHome
installSolrPlugins
start



stop-solr
post-integration-test

stop

...
```