[
https://issues.apache.org/jira/browse/SOLR-3623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418540#comment-13418540
]
Hoss Man edited comment on SOLR-3623 at 7/19/12 6:30 PM:
---------------------------------------------------------
bq. There is no contrib/xx/lucene-libs in the current trunk or 4.x.
They are created as part of the packaging process, they never exist in a source
checkout.
run "ant create-package" on the 4x branch, and then look inside the resulting
package/apache-solr-4.0-SNAPSHOT.tgz...
{noformat}
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lib/icu4j-4.8.1.1.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-morfologik-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-smartcn-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-stempel-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-fsa-1.5.3.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-polish-1.5.3.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-stemming-1.5.3.jar
apache-solr-4.0-SNAPSHOT/dist/apache-solr-analysis-extras-4.0-SNAPSHOT.jar
{noformat}
bq. In trunk & 4.x the lucene-analyzers-\*.jar files are copied into the war
file. The apache-solr-analysis-extras jar and the dependent jars are not.
That i can reproduce...
{noformat}
WEB-INF/lib/lucene-analyzers-common-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-kuromoji-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-morfologik-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-phonetic-4.0-SNAPSHOT.jar
WEB-INF/lib/morfologik-fsa-1.5.3.jar
WEB-INF/lib/morfologik-polish-1.5.3.jar
WEB-INF/lib/morfologik-stemming-1.5.3.jar
{noformat}
...and there is definitely an inconsistency here -- if some of the
lucene-analyzers-\*.jar files are being packaged in the war, then we should not
also be putting them in contrib/\*/lucene-libs and instructing people that they
are a dependency in the README for that contrib.
It appears that icu4j-\*.jar and lucene-analyzers-icu-\*.jar are the only two
external libs needed to make contrib/analysis-extras work, and we just need to
update contrib/analysis-extras/README and contrib/analysis-extras/build.xml to
reflect this.
I added the following to the (packaged)
example/solr/collection1/conf/solrconfig.xml...
{code}
<lib dir="../../../contrib/analysis-extras/lib" regex=".*\.jar" />
<lib dir="../../../contrib/analysis-extras/lucene-libs"
regex="lucene-analyzers-icu.*\.jar" />
<lib dir="../../../dist/" regex="apache-solr-analysis-extras-\d.*\.jar" />
{code}
...and the "icu" field type seemed to work fine.
was (Author: hossman):
bq. There is no contrib/xx/lucene-libs in the current trunk or 4.x.
They are created as part of the packaging process, they never exist in a source
checkout.
run "ant create-package" on the 4x branch, and then look inside the resulting
package/apache-solr-4.0-SNAPSHOT.tgz...
{noformat}
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lib/icu4j-4.8.1.1.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-icu-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-morfologik-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-smartcn-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/lucene-analyzers-stempel-4.0-SNAPSHOT.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-fsa-1.5.3.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-polish-1.5.3.jar
apache-solr-4.0-SNAPSHOT/contrib/analysis-extras/lucene-libs/morfologik-stemming-1.5.3.jar
apache-solr-4.0-SNAPSHOT/dist/apache-solr-analysis-extras-4.0-SNAPSHOT.jar
{noformat}
bq. In trunk & 4.x the lucene-analyzers-*.jar files are copied into the war
file. The apache-solr-analysis-extras jar and the dependent jars are not.
That i can reproduce...
{noformat}
WEB-INF/lib/lucene-analyzers-common-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-kuromoji-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-morfologik-4.0-SNAPSHOT.jar
WEB-INF/lib/lucene-analyzers-phonetic-4.0-SNAPSHOT.jar
WEB-INF/lib/morfologik-fsa-1.5.3.jar
WEB-INF/lib/morfologik-polish-1.5.3.jar
WEB-INF/lib/morfologik-stemming-1.5.3.jar
{noformat}
...and there is definitely an inconsistency here -- if some of the
lucene-analyzers-*.jar files are being packaged in the war, then we should not
also be putting them in contrib/*/lucene-libs and instructing people that they
are a dependency in the README for that contrib.
It appears that icu4j-*.jar and lucene-analyzers-icu-*.jar are the only two
external libs needed to make contrib/analysis-extras work, and we just need to
update contrib/analysis-extras/README and contrib/analysis-extras/build.xml to
reflect this.
I added the following to the (packaged)
example/solr/collection1/conf/solrconfig.xml...
{code}
<lib dir="../../../contrib/analysis-extras/lib" regex=".*\.jar" />
<lib dir="../../../contrib/analysis-extras/lucene-libs"
regex="lucene-analyzers-icu.*\.jar" />
<lib dir="../../../dist/" regex="apache-solr-analysis-extras-\d.*\.jar" />
{code}
...and the "icu" field type seemed to work fine.
> analysis-extras lucene libraries are redundenly packaged (in war and in
> lucene-libs)
> ------------------------------------------------------------------------------------
>
> Key: SOLR-3623
> URL: https://issues.apache.org/jira/browse/SOLR-3623
> Project: Solr
> Issue Type: Bug
> Components: Build
> Reporter: Lance Norskog
> Assignee: Hoss Man
> Priority: Minor
> Fix For: 4.0, 5.0
>
>
> Various dependencies for contrib/analysis-extras are packaged
> contrib/analysis-extras/lucene-libs (along with instructions in
> contrib/analysis-extras/README.txt that users need to include them
> explicitly) even though these jars are already hardcoded into the solr war
> file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]