SOLR-2365: Move DIH jars out of solr.war

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1072127 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2011-02-18 20:16:07 +00:00
parent e22ebc0fda
commit 77258e59ac
7 changed files with 15 additions and 12 deletions

View File

@ -54,7 +54,6 @@ Upgrading from Solr 3.1-dev
their solrconfig.xml file. their solrconfig.xml file.
Detailed Change List Detailed Change List
---------------------- ----------------------
@ -268,6 +267,11 @@ Upgrading from Solr 1.4
arbitrarily. Solr will now fail on any attempt to sort, or apply a arbitrarily. Solr will now fail on any attempt to sort, or apply a
function to, multi-valued fields function to, multi-valued fields
* The DataImportHandler jars are no longer included in the solr
WAR and should be added in Solr's lib directory, or referenced
via the <lib> directive in solrconfig.xml.
Detailed Change List Detailed Change List
---------------------- ----------------------
@ -788,6 +792,8 @@ Other Changes
* SOLR-2340: Add version infos to message in JavaBinCodec when throwing * SOLR-2340: Add version infos to message in JavaBinCodec when throwing
exception. (koji) exception. (koji)
* SOLR-2365: Move DIH jars out of solr.war (David Smiley via yonik)
Build Build
---------------------- ----------------------

View File

@ -276,7 +276,7 @@
<fileset dir="src/main/webapp" includes="**" /> <fileset dir="src/main/webapp" includes="**" />
</copy> </copy>
<mkdir dir="../../build/web/WEB-INF/lib"/> <mkdir dir="../../build/web/WEB-INF/lib"/>
<copy file="target/${fullnamever}.jar" todir="${solr-path}/build/web/WEB-INF/lib"></copy> <!--<copy file="target/${fullnamever}.jar" todir="${solr-path}/build/web/WEB-INF/lib"></copy>-->
<copy file="target/${fullnamever}.jar" todir="${solr-path}/dist"></copy> <copy file="target/${fullnamever}.jar" todir="${solr-path}/dist"></copy>
<copy file="target/apache-${ant.project.name}-extras-${version}.jar" todir="${solr-path}/dist"></copy> <copy file="target/apache-${ant.project.name}-extras-${version}.jar" todir="${solr-path}/dist"></copy>
</target> </target>

View File

@ -1,6 +1,5 @@
<%@ page import="org.apache.solr.request.SolrRequestHandler" %> <%@ page import="org.apache.solr.request.SolrRequestHandler" %>
<%@ page import="java.util.Map" %> <%@ page import="java.util.Map" %>
<%@ page import="org.apache.solr.handler.dataimport.DataImportHandler" %>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%> <%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%-- <%--
Licensed to the Apache Software Foundation (ASF) under one or more Licensed to the Apache Software Foundation (ASF) under one or more
@ -36,7 +35,7 @@ Select handler:
<ul> <ul>
<% <%
for (String key : handlers.keySet()) { for (String key : handlers.keySet()) {
if (handlers.get(key) instanceof DataImportHandler) { %> if (handlers.get(key).getClass().getName().equals("org.apache.solr.handler.dataimport.DataImportHandler")) { %>
<li><a href="dataimport.jsp?handler=<%=key%>"><%=key%></a></li> <li><a href="dataimport.jsp?handler=<%=key%>"><%=key%></a></li>
<% <%
} }

View File

@ -28,6 +28,8 @@
<jmx /> <jmx />
<lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-.*\.jar" />
<indexDefaults> <indexDefaults>
<!-- Values here affect all index writers and act as a default unless overridden. --> <!-- Values here affect all index writers and act as a default unless overridden. -->
<useCompoundFile>false</useCompoundFile> <useCompoundFile>false</useCompoundFile>

View File

@ -27,7 +27,7 @@
<luceneMatchVersion>LUCENE_40</luceneMatchVersion> <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
<lib dir="../../../../contrib/dataimporthandler/lib/" regex=".*jar$" /> <lib dir="../../../../contrib/dataimporthandler/lib/" regex=".*jar$" />
<lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-extras-\d.*\.jar" /> <lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-.*\.jar" />
<indexDefaults> <indexDefaults>
<!-- Values here affect all index writers and act as a default unless overridden. --> <!-- Values here affect all index writers and act as a default unless overridden. -->

View File

@ -28,6 +28,8 @@
<jmx /> <jmx />
<lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-.*\.jar" />
<indexDefaults> <indexDefaults>
<!-- Values here affect all index writers and act as a default unless overridden. --> <!-- Values here affect all index writers and act as a default unless overridden. -->
<useCompoundFile>false</useCompoundFile> <useCompoundFile>false</useCompoundFile>

View File

@ -27,13 +27,7 @@
<luceneMatchVersion>LUCENE_40</luceneMatchVersion> <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
<lib dir="../../../../contrib/extraction/lib" /> <lib dir="../../../../contrib/extraction/lib" />
<lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-extras-\d.*\.jar" /> <lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-.*\.jar" />
<!-- Used to specify an alternate directory to hold all index data
other than the default ./data under the Solr home.
If replication is in use, this should match the replication configuration. -->
<dataDir>${solr.data.dir:./solr/data}</dataDir>
<indexDefaults> <indexDefaults>
<!-- Values here affect all index writers and act as a default unless overridden. --> <!-- Values here affect all index writers and act as a default unless overridden. -->