|
||||||||||||||
|
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 |
||||||||||||||
|
||||||||||||||
|
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 |
||||||||||||||
I opened this issue to fix jar arrangements so that the OpenNLP integration could work. analysis-extras, opennlp, and uima share the same problem: they use lucene libraries and third-party dependencies.
Fixing license file problems is certainly helpful, but does not make deployment any easer. This issue was essentially hijacked.
Here is one way to make it easy to deploy items outside of the solr war file: repack dependent jars into all contrib dist/ jars. Just pack everything about analysis-extras into dist/analysis-extras.jar. Remove the contrib lucene libraries from the war file.
Add this to solr/contrib/analysis-extras/build.xml:
Run 'ant dist addjars'. The dist jar goes from 20k (one file) to 21M (4035 files). But, it is 21M in one deployable file. Everything is in one place!
Caveats:
This design is appropriate for analysis-extras, uima and opennlp. All of these have lucene libraries and lib/ directories, and the current build arrangement just plain does not work. It is a convenience for clustering, dataimporthandler (-extras), extraction, langid, and velocity.
The build.xml file above needs macro-izing, and as mentioned the build sequence needs a point where the contrib build can repack the dist file inside solr/build.