[
https://issues.apache.org/jira/browse/SOLR-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lance Norskog updated SOLR-3760:
--------------------------------
Description:
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.
was:
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 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.
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: [email protected]
For additional commands, e-mail: [email protected]