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.
- Host: GitHub
- URL: https://github.com/mycore-org/solr-runner-maven-plugin
- Owner: MyCoRe-Org
- License: gpl-3.0
- Created: 2017-04-18T08:30:14.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-12-18T12:22:12.000Z (over 1 year ago)
- Last Synced: 2025-01-07T13:03:42.213Z (over 1 year ago)
- Topics: java-8, maven, maven-plugin, solr, solr-runner
- Language: Java
- Homepage:
- Size: 77.1 KB
- Stars: 3
- Watchers: 11
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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
...
```