{"id":26447497,"url":"https://github.com/mycore-org/solr-runner-maven-plugin","last_synced_at":"2025-03-18T13:57:22.480Z","repository":{"id":20040134,"uuid":"88601152","full_name":"MyCoRe-Org/solr-runner-maven-plugin","owner":"MyCoRe-Org","description":"This Plugin is just a wrapper for SOLR and some extra mojos.","archived":false,"fork":false,"pushed_at":"2024-12-18T12:22:12.000Z","size":79,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-01-07T13:03:42.213Z","etag":null,"topics":["java-8","maven","maven-plugin","solr","solr-runner"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MyCoRe-Org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-18T08:30:14.000Z","updated_at":"2024-12-18T12:22:14.000Z","dependencies_parsed_at":"2024-08-12T09:42:42.181Z","dependency_job_id":null,"html_url":"https://github.com/MyCoRe-Org/solr-runner-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCoRe-Org%2Fsolr-runner-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCoRe-Org%2Fsolr-runner-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCoRe-Org%2Fsolr-runner-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MyCoRe-Org%2Fsolr-runner-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MyCoRe-Org","download_url":"https://codeload.github.com/MyCoRe-Org/solr-runner-maven-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244236086,"owners_count":20420752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java-8","maven","maven-plugin","solr","solr-runner"],"created_at":"2025-03-18T13:57:21.506Z","updated_at":"2025-03-18T13:57:22.467Z","avatar_url":"https://github.com/MyCoRe-Org.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# solr-runner-maven-plugin\n\nThis plugin is just a wrapper for SOLR and some extra mojos. It downloads SOLR to the local repository \n`~/.m2/repository/solr-7.7.3/`. It will be started from there, but the path to the solr home will be changed with the \nsolr -s parameter. \n```\n~/.m2/repository/solr-7.7.3/bin/solr start -p 8983 -s ~/my-solr-location\n```\n\nWorks with SOLR 6, 7, 8.\n\n## solr-runner:start \u0026 solr-runner:stop\nDownloads SOLR to local repository and extract it, if it is not present already(in repository).\n\n```\n\u003cplugin\u003e\n  \u003cgroupId\u003eorg.mycore.plugins\u003c/groupId\u003e\n    \u003cartifactId\u003esolr-runner-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e1.2-SNAPSHOT\u003c/version\u003e\n    \u003cconfiguration\u003e\n      \u003c!-- You can specify a custom SOLR mirror --\u003e\n      \u003csolrMirrorURL\u003ehttp://apache.mirror.iphh.net/lucene/solr/\u003c/solrMirrorURL\u003e\n      \n      \u003c!-- You can specify a custom SOLR version --\u003e\n      \u003csolrVersionString\u003e7.7.3\u003c/solrVersionString\u003e\n      \n      \u003c!-- You can specify a custom SOLR port --\u003e\n      \u003csolrPort\u003e8983\u003c/solrPort\u003e\n      \n      \u003c!-- You have to specify the SOLR home with your configuration. (see also copyHome) --\u003e\n      \u003csolrHome\u003e${user.home}/solr\u003c/solrHome\u003e\n    \u003c/configuration\u003e\n\u003c/plugin\u003e\n``` \n\n## solr-runner:copyHome\nCan be used to copy SOLR home template from your project files to solr home location to keep your project files clean.\n\n```\n\u003cplugin\u003e\n  \u003cgroupId\u003eorg.mycore.plugins\u003c/groupId\u003e\n    \u003cartifactId\u003esolr-runner-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e1.2-SNAPSHOT\u003c/version\u003e\n    \u003cconfiguration\u003e      \n      \u003c!-- You have to specify the SOLR home with your configuration. --\u003e\n      \u003csolrHome\u003e${user.home}/solr\u003c/solrHome\u003e\n      \n      \u003c!-- This is my \"template\" solr-home which will be copied to solrHome --\u003e\n      \u003csolrHomeTemplate\u003e${project.basedir}/src/main/resources/solrHome\u003c/solrHomeTemplate\u003e\n    \u003c/configuration\u003e\n\u003c/plugin\u003e\n```\n\n## solr-runner:installSolrPlugins\nThis can be used to install plugins to specific cores in your SOLR home.\nYou need to define a plugin dependency.\n```\n\u003cplugin\u003e\n  \u003cgroupId\u003eorg.mycore.plugins\u003c/groupId\u003e\n    \u003cartifactId\u003esolr-runner-maven-plugin\u003c/artifactId\u003e\n    \u003cversion\u003e1.2-SNAPSHOT\u003c/version\u003e\n    \u003cdependencies\u003e\n       \u003cdependency\u003e\n          \u003cgroupId\u003emy.amazing\u003c/groupId\u003e\n          \u003cartifactId\u003esolr-plugin\u003c/artifactId\u003e\n          \u003cversion\u003e1.2\u003c/version\u003e\n       \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n    \n    \u003cconfiguration\u003e      \n      \u003c!-- You have to specify the SOLR home with your configuration. --\u003e\n      \u003csolrHome\u003e${user.home}/solr\u003c/solrHome\u003e\n      \n      ...\n    \n    \u003c/configuration\u003e  \n\u003c/plugin\u003e\n```\n\nAnd then you need to map the plugin to a specific Core.\n```\n...\n\u003cconfiguration\u003e      \n  \u003cpluginCoreMappings\u003e\n      \u003cpluginCoreMapping\u003e\n          \u003ccore\u003emySolrCore\u003c/core\u003e\n          \u003cplugin\u003emy.amazing:solr-plugin\u003c/plugin\u003e\n      \u003c/pluginCoreMapping\u003e\n  \u003c/pluginCoreMappings\u003e\n\u003c/configuration\u003e\n...\n```\n\n## lifecycle mapping\n\nYou can bind those goals to run with your integration tests.\n\n```\n...\n\u003cexecutions\u003e\n  \u003cexecution\u003e\n    \u003cid\u003estart-solr\u003c/id\u003e\n    \u003cphase\u003epre-integration-test\u003c/phase\u003e\n    \u003cgoals\u003e\n      \u003cgoal\u003ecopyHome\u003c/goal\u003e\n      \u003cgoal\u003einstallSolrPlugins\u003c/goal\u003e\n      \u003cgoal\u003estart\u003c/goal\u003e\n    \u003c/goals\u003e\n  \u003c/execution\u003e\n  \u003cexecution\u003e\n    \u003cid\u003estop-solr\u003c/id\u003e\n    \u003cphase\u003epost-integration-test\u003c/phase\u003e\n    \u003cgoals\u003e\n      \u003cgoal\u003estop\u003c/goal\u003e\n    \u003c/goals\u003e\n  \u003c/execution\u003e\n\u003c/executions\u003e\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycore-org%2Fsolr-runner-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmycore-org%2Fsolr-runner-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmycore-org%2Fsolr-runner-maven-plugin/lists"}