Details
-
Improvement
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
None
Description
The solr tarball (and docker container) ships with several contribs, but adding them to the classpath has earlier involved inserting <lib>../../../foo.jar</lib> entries into solrconfig. There is also the <sharedLib> config in solr.xml available as -Dsolr.sharedLib=/my/folder,/my/other/folder. Finally we also have package manager with own classloaders of course. We'll live with all of these for some time, so let's make each one more pleasant to use.
Today, to add a contrib to path you would add both dist/foo*.jar and contrib/foo/lib/*.jar to classpath. Sometimes perhaps more.
In this Jira I'd like to make it much easier for users to add a contrib to path by its name. Goal is for something like
SOLR_MODULES=langid,extraction bin/solr start -c
The bin/solr script would have a map of contrib to lib-folders, and add those as sharedLib entries, possibly appending to the user-supplied list of sharedLib?
Attachments
Issue Links
- is blocked by
-
SOLR-15916 Remove "dist/" from distribution
- Closed
-
SOLR-15917 Rename 'contrib' as 'module'
- Closed
- is related to
-
SOLR-16240 org.apache.solr.common.SolrException: Error loading class 'solr.KerberosPlugin'
- Closed
-
SOLR-16553 SolrTestCaseJ4 solr.install.dir property not initialized
- Closed
-
SOLR-15951 Local packages
- Open
- links to