[ https://issues.apache.org/jira/browse/SOLR-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442188#comment-13442188 ]
Lance Norskog edited comment on SOLR-3760 at 8/27/12 8:09 AM: -------------------------------------------------------------- Here is the easy way: move the lucene analyzer library from the solr war to a new directory inside solr/contrib/contribX/lucene-lib. The solrconfig.xml then has three <lib> directives: ../../dist/xxx\-contribX\-xxx.jar ../../contrib/contribX/lib ../../contrib/contribX/lucene-lib I'm doing this for the OpenNLP patch. was (Author: lancenorskog): Here is the easy way: move the lucene analyzer library from the solr war to a new directory inside solr/contrib/contribX/lucene-lib. The solrconfig.xml then has three <lib> directives: ../../dist/\-\-\-contribX\-\-\-.jar ../../contrib/contribX/lib ../../contrib/contribX/lucene-lib I'm doing this for the OpenNLP patch. > Build packaging of complex contrib packages just plain does not work > -------------------------------------------------------------------- > > Key: SOLR-3760 > URL: https://issues.apache.org/jira/browse/SOLR-3760 > Project: Solr > Issue Type: Improvement > Components: Build > Reporter: Lance Norskog > > The build system packages Lucene libraries in the Solr war, but they do not > pack libraries required by the Lucene libraries. The UIMA and analysis-extras > contrib packages have factories for the Lucene libraries. > The net effect is that when solrconfig.xml include <lib> directives for > dist/xxx-contribX-xxx.jar and solr/contrib/contribX/lib, this fails because > the lucene analyzer file inside the solr war cannot find the library files in > solr/contrib/contribX/lib because the classloader for the war does not find > the libraries from the <lib> directives. > Two alternative fixes are presented below. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org