[ 
https://issues.apache.org/jira/browse/SOLR-3843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13586412#comment-13586412
 ] 

Steve Rowe commented on SOLR-3843:
----------------------------------

In the Maven build, it's the solr core module that depends on these analysis 
modules.  Here's the output from {{mvn dependency:tree}} in 
{{maven-build/solr/webapp/}}:

{noformat}
[INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ solr ---
[INFO] org.apache.solr:solr:war:5.0-SNAPSHOT
[INFO] +- org.apache.solr:solr-core:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-analyzers-common:jar:5.0-SNAPSHOT:compile
[INFO] |  +- 
org.apache.lucene:lucene-analyzers-kuromoji:jar:5.0-SNAPSHOT:compile
[INFO] |  +- 
org.apache.lucene:lucene-analyzers-morfologik:jar:5.0-SNAPSHOT:compile
[INFO] |  |  \- org.carrot2:morfologik-polish:jar:1.5.5:compile
[INFO] |  |     \- org.carrot2:morfologik-stemming:jar:1.5.5:compile
[INFO] |  |        \- org.carrot2:morfologik-fsa:jar:1.5.5:compile
[INFO] |  +- 
org.apache.lucene:lucene-analyzers-phonetic:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-highlighter:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-memory:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-misc:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-queryparser:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-spatial:jar:5.0-SNAPSHOT:compile
[INFO] |  |  \- com.spatial4j:spatial4j:jar:0.3:compile
[INFO] |  +- org.apache.lucene:lucene-suggest:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-grouping:jar:5.0-SNAPSHOT:compile
[INFO] |  +- org.apache.lucene:lucene-queries:jar:5.0-SNAPSHOT:compile
[INFO] |  +- commons-codec:commons-codec:jar:1.7:compile
[INFO] |  +- commons-cli:commons-cli:jar:1.2:compile
[INFO] |  +- commons-fileupload:commons-fileupload:jar:1.2.1:compile
[INFO] |  +- commons-io:commons-io:jar:2.1:compile
[INFO] |  +- commons-lang:commons-lang:jar:2.6:compile
[INFO] |  +- com.google.guava:guava:jar:13.0.1:compile
[INFO] |  +- org.codehaus.woodstox:wstx-asl:jar:3.2.7:runtime
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.2.3:compile
[INFO] |  |  \- org.apache.httpcomponents:httpcore:jar:4.2.2:compile
[INFO] |  \- org.apache.httpcomponents:httpmime:jar:4.2.3:compile
[INFO] +- org.apache.solr:solr-solrj:jar:5.0-SNAPSHOT:compile
[INFO] |  \- org.apache.zookeeper:zookeeper:jar:3.4.5:compile
[INFO] +- org.apache.lucene:lucene-codecs:jar:5.0-SNAPSHOT:compile
[INFO] +- org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:provided
[INFO] +- org.slf4j:slf4j-jdk14:jar:1.6.4:runtime (scope not updated to compile)
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.6.4:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.4:compile
[INFO] \- junit:junit:jar:4.10:test
{noformat}

This parallels the Ant build: these analyzer jars are included in the 
"solr.lucene.libs" path, which is included in "solr.base.classpath".

I put the lucene-codecs dependency on the solr webapp module rather than the 
solr core module because *all non-test compilation succeeds without 
lucene-codecs*.  (The lucene-test-framework pulls lucene-codecs into all Solr 
test classpaths.)  And this issue is about packaging of the war: adding the 
dependency to the webapp module fixes exactly the problem.
                
> Add lucene-codecs to Solr libs?
> -------------------------------
>
>                 Key: SOLR-3843
>                 URL: https://issues.apache.org/jira/browse/SOLR-3843
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 4.0
>            Reporter: Adrien Grand
>            Priority: Critical
>             Fix For: 4.2, 5.0
>
>         Attachments: SOLR-3843.patch, SOLR-3843.patch
>
>
> Solr gives the ability to its users to select the postings format to use on a 
> per-field basis but only Lucene40PostingsFormat is available by default 
> (unless users add lucene-codecs to the Solr lib directory). Maybe we should 
> add lucene-codecs to Solr libs (I mean in the WAR file) so that people can 
> try our non-default postings formats with minimum effort?

--
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]

Reply via email to