[
https://issues.apache.org/jira/browse/JCR-4784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17550196#comment-17550196
]
Ronald A. commented on JCR-4784:
--------------------------------
The reason for using the standalone version was only to better demonstrate the
problem.
More important for my use case would be the inclusion of the lucene analyzers
dependency to the WAR archive.
Currently, after deploying jackrabbit-webapp-2.xx.war, I always have to
remember to copy the lucene-analyzers-3.6.0.jar file into the WEB-INF/lib
directory and force a reload. At least I could not find a simpler solution.
As a PHP programmer I only use jackrabbit via the jackalope-jackrabbit bridge.
Therefore I am forced to deal with Java and Tomcat. I am always happy when
everything works out of the box. :)
Thanks.
> add lucene analyzers dependency to standalone project
> -----------------------------------------------------
>
> Key: JCR-4784
> URL: https://issues.apache.org/jira/browse/JCR-4784
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-standalone
> Reporter: Ronald A.
> Assignee: Julian Reschke
> Priority: Minor
> Labels: candidate_jcr_2_20
> Fix For: 2.22, 2.21.11
>
>
> Using the example configuration from
> [https://jackrabbit.apache.org/archive/wiki/JCR/IndexingConfiguration_115513411.html]
> {code:xml}
> <analyzer class="org.apache.lucene.analysis.Analyzer.GermanAnalyzer">
> <property>mytext</property>
> </analyzer>
> {code}
> results in the following error:
> {{java.lang.ClassNotFoundException:
> org.apache.lucene.analysis.de.GermanAnalyzer}}
> This problem exists in all jackrabbit versions.
> Possible fix:
> {code:java}
> diff -urN jackrabbit-2.18.0.orig/jackrabbit-core/pom.xml
> jackrabbit-2.18.0/jackrabbit-core/pom.xml
> --- jackrabbit-2.18.0.orig/jackrabbit-core/pom.xml<---->2018-11-30
> 11:11:22.000000000 +0100
> +++ jackrabbit-2.18.0/jackrabbit-core/pom.xml<->2020-08-25 10:27:51.509017603
> +0200
> @@ -294,6 +294,10 @@
> <artifactId>lucene-core</artifactId>
> </dependency>
> <dependency>
> + <groupId>org.apache.lucene</groupId>
> + <artifactId>lucene-analyzers</artifactId>
> + </dependency>
> + <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> </dependency>
> diff -urN jackrabbit-2.18.0.orig/jackrabbit-parent/pom.xml
> jackrabbit-2.18.0/jackrabbit-parent/pom.xml
> --- jackrabbit-2.18.0.orig/jackrabbit-parent/pom.xml<-->2018-11-30
> 11:11:38.000000000 +0100
> +++ jackrabbit-2.18.0/jackrabbit-parent/pom.xml>2020-08-25 10:28:09.008828296
> +0200
> @@ -448,6 +448,11 @@
> <version>3.6.0</version>
> </dependency>
> <dependency>
> + <groupId>org.apache.lucene</groupId>
> + <artifactId>lucene-analyzers</artifactId>
> + <version>3.6.0</version>
> + </dependency>
> + <dependency>
> <groupId>org.apache.tika</groupId>
> <artifactId>tika-core</artifactId>
> <version>${tika.version}</version>
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)