Apache Lucene open-source search software
SOLR-3623: Fixed inconsistent treatment of third-party dependencies for solr contribs analysis-extras & uima
Chris M. Hostetter32a0f402d66a
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 2508771e4df..9900f4a37c6 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -131,6 +131,8 @@ Bug Fixes* SOLR-3663: There are a couple of bugs in the sync process when a leader goes down and anew leader is elected. (Mark Miller)+* SOLR-3623: Fixed inconsistent treatment of third-party dependencies for+ solr contribs analysis-extras & uima (hossman)Other Changes----------------------diff --git a/solr/common-build.xml b/solr/common-build.xmlindex e97a2aaa8a6..20170152fac 100644--- a/solr/common-build.xml+++ b/solr/common-build.xml@@ -70,21 +70,32 @@--><property name="solr.spec.version" value="5.0.0.${dateversion}" />+ <path id="solr.lucene.libs">+ <!-- List of jars that will be used as the foundation for both+ the base classpath, as well as copied into the lucene-libs dir+ in the release.+ -->+ <!-- NOTE: lucene-core is explicitly not included because of the+ base.classpath (compilation & tests are done directly against+ the class files w/o needing to build the jar)+ -->+ <pathelement location="${analyzers-common.jar}"/>+ <pathelement location="${analyzers-kuromoji.jar}"/>+ <pathelement location="${analyzers-phonetic.jar}"/>+ <pathelement location="${highlighter.jar}"/>+ <pathelement location="${memory.jar}"/>+ <pathelement location="${misc.jar}"/>+ <pathelement location="${spatial.jar}"/>+ <pathelement location="${suggest.jar}"/>+ <pathelement location="${grouping.jar}"/>+ <pathelement location="${queries.jar}"/>+ <pathelement location="${queryparser.jar}"/>+ </path>+<path id="solr.base.classpath">- <pathelement path="${analyzers-common.jar}"/>- <pathelement path="${analyzers-kuromoji.jar}"/>- <pathelement path="${analyzers-phonetic.jar}"/>- <pathelement path="${analyzers-uima.jar}"/>- <pathelement path="${highlighter.jar}"/>- <pathelement path="${memory.jar}"/>- <pathelement path="${misc.jar}"/>- <pathelement path="${spatial.jar}"/>- <pathelement path="${suggest.jar}"/>- <pathelement path="${grouping.jar}"/>- <pathelement path="${queries.jar}"/>- <pathelement path="${queryparser.jar}"/><pathelement location="${common-solr.dir}/build/solr-solrj/classes/java"/><pathelement location="${common-solr.dir}/build/solr-core/classes/java"/>+ <path refid="solr.lucene.libs" /><path refid="additional.dependencies"/><path refid="base.classpath"/></path>@@ -125,7 +136,7 @@</target><target name="prep-lucene-jars"- depends="jar-lucene-core, jar-analyzers-phonetic, jar-analyzers-kuromoji, jar-analyzers-morfologik, jar-suggest, jar-highlighter, jar-memory,+ depends="jar-lucene-core, jar-analyzers-phonetic, jar-analyzers-kuromoji, jar-suggest, jar-highlighter, jar-memory,jar-misc, jar-spatial, jar-grouping, jar-queries, jar-queryparser"><property name="solr.deps.compiled" value="true"/></target>@@ -137,19 +148,11 @@<propertyset refid="uptodate.and.compiled.properties"/></ant><copy todir="${lucene-libs}" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">+ <path refid="solr.lucene.libs" />+ <!-- NOTE: lucene-core is not already included in "solr.lucene.libs"+ because of it's use in classpaths.+ --><fileset file="${lucene-core.jar}" />- <fileset file="${analyzers-common.jar}" />- <fileset file="${analyzers-kuromoji.jar}" />- <fileset file="${analyzers-phonetic.jar}" />- <fileset file="${suggest.jar}" />- <fileset file="${grouping.jar}" />- <fileset file="${queries.jar}" />- <fileset file="${queryparser.jar}" />- <fileset file="${highlighter.jar}" />- <fileset file="${memory.jar}" />- <fileset file="${misc.jar}" />- <fileset file="${spatial.jar}" />- <fileset refid="analyzers-morfologik.fileset" /></copy></sequential></target>diff --git a/solr/contrib/analysis-extras/README.txt b/solr/contrib/analysis-extras/README.txtindex c9329438fe7..c7cfbc37f60 100644--- a/solr/contrib/analysis-extras/README.txt+++ b/solr/contrib/analysis-extras/README.txt@@ -9,8 +9,11 @@ Relies upon the following lucene components (in lucene-libs/):* lucene-analyzers-icu-X.Y.jar* lucene-analyzers-smartcn-X.Y.jar* lucene-analyzers-stempel-X.Y.jar--And the ICU library (in lib/):+ * lucene-analyzers-morfologik-X.Y.jar+ * lucene-analyzers-smartcn-X.Y.jar++And the following third-party library (in lib/):* icu4j-X.Y.jar+ * morfologik-*.jardiff --git a/solr/contrib/analysis-extras/build.xml b/solr/contrib/analysis-extras/build.xmlindex 93519b05d54..398b7201ea6 100644--- a/solr/contrib/analysis-extras/build.xml+++ b/solr/contrib/analysis-extras/build.xml@@ -24,13 +24,17 @@</description><import file="../contrib-build.xml"/>++ <path id="analysis.extras.lucene.libs">+ <pathelement location="${analyzers-icu.jar}"/>+ <pathelement location="${analyzers-smartcn.jar}"/>+ <pathelement location="${analyzers-stempel.jar}"/>+ <pathelement location="${analyzers-morfologik.jar}"/>+ </path><path id="classpath">- <fileset dir="lib" excludes="${common.classpath.excludes}"/>- <pathelement path="${analyzers-icu.jar}"/>- <pathelement path="${analyzers-smartcn.jar}"/>- <pathelement path="${analyzers-stempel.jar}"/>- <fileset refid="analyzers-morfologik.fileset" />+ <fileset dir="lib" excludes="${common.classpath.excludes}"/>+ <path refid="analysis.extras.lucene.libs" /><path refid="solr.base.classpath"/></path>@@ -38,10 +42,7 @@depends="jar-analyzers-icu, jar-analyzers-smartcn, jar-analyzers-stempel, jar-analyzers-morfologik"><mkdir dir="${build.dir}/lucene-libs"/><copy todir="${build.dir}/lucene-libs" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">- <fileset file="${analyzers-icu.jar}"/>- <fileset file="${analyzers-smartcn.jar}"/>- <fileset file="${analyzers-stempel.jar}"/>- <fileset refid="analyzers-morfologik.fileset" />+ <path refid="analysis.extras.lucene.libs" /></copy></target>diff --git a/solr/contrib/analysis-extras/ivy.xml b/solr/contrib/analysis-extras/ivy.xmlindex 62fcffbab96..6329c419bb1 100644--- a/solr/contrib/analysis-extras/ivy.xml+++ b/solr/contrib/analysis-extras/ivy.xml@@ -20,6 +20,9 @@<info organisation="org.apache.solr" module="analysis-extras"/><dependencies><dependency org="com.ibm.icu" name="icu4j" rev="4.8.1.1" transitive="false"/>+ <dependency org="org.carrot2" name="morfologik-polish" rev="1.5.3" transitive="false"/>+ <dependency org="org.carrot2" name="morfologik-fsa" rev="1.5.3" transitive="false"/>+ <dependency org="org.carrot2" name="morfologik-stemming" rev="1.5.3" transitive="false"/><exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/></dependencies></ivy-module>diff --git a/solr/contrib/analysis-extras/lib/morfologik-fsa-1.5.3.jar.sha1 b/solr/contrib/analysis-extras/lib/morfologik-fsa-1.5.3.jar.sha1new file mode 100644index 00000000000..3d3b86d5f8c--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-fsa-1.5.3.jar.sha1@@ -0,0 +1 @@+d1f729cd3019e6d86485226202f84458141a5688diff --git a/solr/contrib/analysis-extras/lib/morfologik-fsa-LICENSE-BSD.txt b/solr/contrib/analysis-extras/lib/morfologik-fsa-LICENSE-BSD.txtnew file mode 100644index 00000000000..f97fb7dfe38--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-fsa-LICENSE-BSD.txt@@ -0,0 +1,29 @@++Copyright (c) 2006 Dawid Weiss+Copyright (c) 2007-2012 Dawid Weiss, Marcin Miłkowski+All rights reserved.++Redistribution and use in source and binary forms, with or without modification,+are permitted provided that the following conditions are met:++ * Redistributions of source code must retain the above copyright notice,+ this list of conditions and the following disclaimer.++ * Redistributions in binary form must reproduce the above copyright notice,+ this list of conditions and the following disclaimer in the documentation+ and/or other materials provided with the distribution.++ * Neither the name of Morfologik nor the names of its contributors+ may be used to endorse or promote products derived from this software+ without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.diff --git a/solr/contrib/analysis-extras/lib/morfologik-fsa-NOTICE.txt b/solr/contrib/analysis-extras/lib/morfologik-fsa-NOTICE.txtnew file mode 100644index 00000000000..18ba2f3e39c--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-fsa-NOTICE.txt@@ -0,0 +1,2 @@+This product includes BSD-licensed software developed by Dawid Weiss and Marcin Miłkowski+(http://morfologik.blogspot.com/).diff --git a/solr/contrib/analysis-extras/lib/morfologik-polish-1.5.3.jar.sha1 b/solr/contrib/analysis-extras/lib/morfologik-polish-1.5.3.jar.sha1new file mode 100644index 00000000000..6eb48a47896--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-polish-1.5.3.jar.sha1@@ -0,0 +1 @@+8217b6f7ad018ceda0e824b2e60340000da4397adiff --git a/solr/contrib/analysis-extras/lib/morfologik-polish-LICENSE-BSD.txt b/solr/contrib/analysis-extras/lib/morfologik-polish-LICENSE-BSD.txtnew file mode 100644index 00000000000..04ffd07ece9--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-polish-LICENSE-BSD.txt@@ -0,0 +1,62 @@+BSD-licensed dictionary of Polish (Morfologik)++Copyright (c) 2012, Marcin Miłkowski+All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are+met:++1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the+ distribution.++THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDERS “AS IS” AND ANY EXPRESS+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS BE+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++--++BSD-licensed dictionary of Polish (SGJP)+http://sgjp.pl/morfeusz/++Copyright © 2011 Zygmunt Saloni, Włodzimierz Gruszczyński,+ Marcin Woliński, Robert Wołosz++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are+met:++1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.++2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the+ distribution.++THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDERS “AS IS” AND ANY EXPRESS+OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS OR CONTRIBUTORS BE+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\ No newline at end of filediff --git a/solr/contrib/analysis-extras/lib/morfologik-polish-NOTICE.txt b/solr/contrib/analysis-extras/lib/morfologik-polish-NOTICE.txtnew file mode 100644index 00000000000..a8a3aa11a3d--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-polish-NOTICE.txt@@ -0,0 +1,6 @@++This product includes data from BSD-licensed dictionary of Polish (Morfologik)+(http://morfologik.blogspot.com/)++This product includes data from BSD-licensed dictionary of Polish (SGJP)+(http://sgjp.pl/morfeusz/)diff --git a/solr/contrib/analysis-extras/lib/morfologik-stemming-1.5.3.jar.sha1 b/solr/contrib/analysis-extras/lib/morfologik-stemming-1.5.3.jar.sha1new file mode 100644index 00000000000..c31642be45d--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-stemming-1.5.3.jar.sha1@@ -0,0 +1 @@+c4ead57b78fa71b00553ff21da6fb5a326e914e8diff --git a/solr/contrib/analysis-extras/lib/morfologik-stemming-LICENSE-BSD.txt b/solr/contrib/analysis-extras/lib/morfologik-stemming-LICENSE-BSD.txtnew file mode 100644index 00000000000..f97fb7dfe38--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-stemming-LICENSE-BSD.txt@@ -0,0 +1,29 @@++Copyright (c) 2006 Dawid Weiss+Copyright (c) 2007-2012 Dawid Weiss, Marcin Miłkowski+All rights reserved.++Redistribution and use in source and binary forms, with or without modification,+are permitted provided that the following conditions are met:++ * Redistributions of source code must retain the above copyright notice,+ this list of conditions and the following disclaimer.++ * Redistributions in binary form must reproduce the above copyright notice,+ this list of conditions and the following disclaimer in the documentation+ and/or other materials provided with the distribution.++ * Neither the name of Morfologik nor the names of its contributors+ may be used to endorse or promote products derived from this software+ without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.diff --git a/solr/contrib/analysis-extras/lib/morfologik-stemming-NOTICE.txt b/solr/contrib/analysis-extras/lib/morfologik-stemming-NOTICE.txtnew file mode 100644index 00000000000..18ba2f3e39c--- /dev/null+++ b/solr/contrib/analysis-extras/lib/morfologik-stemming-NOTICE.txt@@ -0,0 +1,2 @@+This product includes BSD-licensed software developed by Dawid Weiss and Marcin Miłkowski+(http://morfologik.blogspot.com/).diff --git a/solr/contrib/uima/README.txt b/solr/contrib/uima/README.txtindex 9d45910666e..70d49f8ff37 100644--- a/solr/contrib/uima/README.txt+++ b/solr/contrib/uima/README.txt@@ -6,6 +6,7 @@ To start using Solr UIMA Metadata Extraction Library you should go through the for set <lib/> tags in solrconfig.xml appropriately to point those jar files.<lib dir="../../contrib/uima/lib" />+ <lib dir="../../contrib/uima/lucene-libs" /><lib dir="../../dist/" regex="apache-solr-uima-\d.*\.jar" />2. modify your schema.xml adding the fields you want to be hold metadata specifying proper values for type, indexed, stored and multiValued options: