mirror of https://github.com/apache/lucene.git
SOLR-3623: Fixed inconsistent treatment of third-party dependencies for solr contribs analysis-extras & uima
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1364728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed85646812
commit
32a0f402d6
|
@ -131,6 +131,8 @@ Bug Fixes
|
||||||
* SOLR-3663: There are a couple of bugs in the sync process when a leader goes down and a
|
* SOLR-3663: There are a couple of bugs in the sync process when a leader goes down and a
|
||||||
new leader is elected. (Mark Miller)
|
new leader is elected. (Mark Miller)
|
||||||
|
|
||||||
|
* SOLR-3623: Fixed inconsistent treatment of third-party dependencies for
|
||||||
|
solr contribs analysis-extras & uima (hossman)
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -70,21 +70,32 @@
|
||||||
-->
|
-->
|
||||||
<property name="solr.spec.version" value="5.0.0.${dateversion}" />
|
<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">
|
<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-solrj/classes/java"/>
|
||||||
<pathelement location="${common-solr.dir}/build/solr-core/classes/java"/>
|
<pathelement location="${common-solr.dir}/build/solr-core/classes/java"/>
|
||||||
|
<path refid="solr.lucene.libs" />
|
||||||
<path refid="additional.dependencies"/>
|
<path refid="additional.dependencies"/>
|
||||||
<path refid="base.classpath"/>
|
<path refid="base.classpath"/>
|
||||||
</path>
|
</path>
|
||||||
|
@ -125,7 +136,7 @@
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="prep-lucene-jars"
|
<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">
|
jar-misc, jar-spatial, jar-grouping, jar-queries, jar-queryparser">
|
||||||
<property name="solr.deps.compiled" value="true"/>
|
<property name="solr.deps.compiled" value="true"/>
|
||||||
</target>
|
</target>
|
||||||
|
@ -137,19 +148,11 @@
|
||||||
<propertyset refid="uptodate.and.compiled.properties"/>
|
<propertyset refid="uptodate.and.compiled.properties"/>
|
||||||
</ant>
|
</ant>
|
||||||
<copy todir="${lucene-libs}" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">
|
<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="${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>
|
</copy>
|
||||||
</sequential>
|
</sequential>
|
||||||
</target>
|
</target>
|
||||||
|
|
|
@ -9,8 +9,11 @@ Relies upon the following lucene components (in lucene-libs/):
|
||||||
* lucene-analyzers-icu-X.Y.jar
|
* lucene-analyzers-icu-X.Y.jar
|
||||||
* lucene-analyzers-smartcn-X.Y.jar
|
* lucene-analyzers-smartcn-X.Y.jar
|
||||||
* lucene-analyzers-stempel-X.Y.jar
|
* lucene-analyzers-stempel-X.Y.jar
|
||||||
|
* lucene-analyzers-morfologik-X.Y.jar
|
||||||
|
* lucene-analyzers-smartcn-X.Y.jar
|
||||||
|
|
||||||
And the ICU library (in lib/):
|
And the following third-party library (in lib/):
|
||||||
|
|
||||||
* icu4j-X.Y.jar
|
* icu4j-X.Y.jar
|
||||||
|
* morfologik-*.jar
|
||||||
|
|
||||||
|
|
|
@ -25,12 +25,16 @@
|
||||||
|
|
||||||
<import file="../contrib-build.xml"/>
|
<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">
|
<path id="classpath">
|
||||||
<fileset dir="lib" excludes="${common.classpath.excludes}"/>
|
<fileset dir="lib" excludes="${common.classpath.excludes}"/>
|
||||||
<pathelement path="${analyzers-icu.jar}"/>
|
<path refid="analysis.extras.lucene.libs" />
|
||||||
<pathelement path="${analyzers-smartcn.jar}"/>
|
|
||||||
<pathelement path="${analyzers-stempel.jar}"/>
|
|
||||||
<fileset refid="analyzers-morfologik.fileset" />
|
|
||||||
<path refid="solr.base.classpath"/>
|
<path refid="solr.base.classpath"/>
|
||||||
</path>
|
</path>
|
||||||
|
|
||||||
|
@ -38,10 +42,7 @@
|
||||||
depends="jar-analyzers-icu, jar-analyzers-smartcn, jar-analyzers-stempel, jar-analyzers-morfologik">
|
depends="jar-analyzers-icu, jar-analyzers-smartcn, jar-analyzers-stempel, jar-analyzers-morfologik">
|
||||||
<mkdir dir="${build.dir}/lucene-libs"/>
|
<mkdir dir="${build.dir}/lucene-libs"/>
|
||||||
<copy todir="${build.dir}/lucene-libs" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">
|
<copy todir="${build.dir}/lucene-libs" preservelastmodified="true" flatten="true" failonerror="true" overwrite="true">
|
||||||
<fileset file="${analyzers-icu.jar}"/>
|
<path refid="analysis.extras.lucene.libs" />
|
||||||
<fileset file="${analyzers-smartcn.jar}"/>
|
|
||||||
<fileset file="${analyzers-stempel.jar}"/>
|
|
||||||
<fileset refid="analyzers-morfologik.fileset" />
|
|
||||||
</copy>
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@
|
||||||
<info organisation="org.apache.solr" module="analysis-extras"/>
|
<info organisation="org.apache.solr" module="analysis-extras"/>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency org="com.ibm.icu" name="icu4j" rev="4.8.1.1" transitive="false"/>
|
<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}"/>
|
<exclude org="*" ext="*" matcher="regexp" type="${ivy.exclude.types}"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</ivy-module>
|
</ivy-module>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
d1f729cd3019e6d86485226202f84458141a5688
|
|
@ -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.
|
|
@ -0,0 +1,2 @@
|
||||||
|
This product includes BSD-licensed software developed by Dawid Weiss and Marcin Miłkowski
|
||||||
|
(http://morfologik.blogspot.com/).
|
|
@ -0,0 +1 @@
|
||||||
|
8217b6f7ad018ceda0e824b2e60340000da4397a
|
|
@ -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.
|
|
@ -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/)
|
|
@ -0,0 +1 @@
|
||||||
|
c4ead57b78fa71b00553ff21da6fb5a326e914e8
|
|
@ -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.
|
|
@ -0,0 +1,2 @@
|
||||||
|
This product includes BSD-licensed software developed by Dawid Weiss and Marcin Miłkowski
|
||||||
|
(http://morfologik.blogspot.com/).
|
|
@ -6,6 +6,7 @@ To start using Solr UIMA Metadata Extraction Library you should go through the f
|
||||||
or set <lib/> tags in solrconfig.xml appropriately to point those jar files.
|
or set <lib/> tags in solrconfig.xml appropriately to point those jar files.
|
||||||
|
|
||||||
<lib dir="../../contrib/uima/lib" />
|
<lib dir="../../contrib/uima/lib" />
|
||||||
|
<lib dir="../../contrib/uima/lucene-libs" />
|
||||||
<lib dir="../../dist/" regex="apache-solr-uima-\d.*\.jar" />
|
<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:
|
2. modify your schema.xml adding the fields you want to be hold metadata specifying proper values for type, indexed, stored and multiValued options:
|
||||||
|
|
Loading…
Reference in New Issue