mirror of https://github.com/apache/lucene.git
SOLR-871: Removed dependancy on stax-utils.jar. If you using solr.jar and running
java 6, you can also remove woodstox and geronimo. (ryan) git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@719022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dee0496714
commit
2ea46096b9
|
@ -136,6 +136,9 @@ Other Changes
|
||||||
|
|
||||||
4. SOLR-852: Refactored common code in CSVRequestHandler and XMLUpdateRequestHandler (gsingers, ehatcher)
|
4. SOLR-852: Refactored common code in CSVRequestHandler and XMLUpdateRequestHandler (gsingers, ehatcher)
|
||||||
|
|
||||||
|
5. SOLR-871: Removed dependancy on stax-utils.jar. If you using solr.jar and running
|
||||||
|
java 6, you can also remove woodstox and geronimo. (ryan)
|
||||||
|
|
||||||
|
|
||||||
Build
|
Build
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -61,11 +61,6 @@
|
||||||
<artifactId>commons-io</artifactId>
|
<artifactId>commons-io</artifactId>
|
||||||
<version>1.3.2</version>
|
<version>1.3.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>commons-logging</groupId>
|
|
||||||
<artifactId>commons-logging</artifactId>
|
|
||||||
<version>1.0.4</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-fileupload</groupId>
|
<groupId>commons-fileupload</groupId>
|
||||||
<artifactId>commons-fileupload</artifactId>
|
<artifactId>commons-fileupload</artifactId>
|
||||||
|
@ -82,12 +77,7 @@
|
||||||
<groupId>org.apache.geronimo.specs</groupId>
|
<groupId>org.apache.geronimo.specs</groupId>
|
||||||
<artifactId>geronimo-stax-api_1.0_spec</artifactId>
|
<artifactId>geronimo-stax-api_1.0_spec</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>stax-utils</groupId>
|
|
||||||
<artifactId>stax-utils</artifactId>
|
|
||||||
<version>snapshot-20040917</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
AnyObjectId[cd0573d31467410867251dad9df12ebeb97443ab] was removed in git history.
|
|
||||||
Apache SVN contains full history.
|
|
|
@ -16,7 +16,6 @@ package org.apache.solr.handler;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import javanet.staxutils.BaseXMLInputFactory;
|
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.apache.lucene.analysis.Analyzer;
|
import org.apache.lucene.analysis.Analyzer;
|
||||||
import org.apache.lucene.analysis.Token;
|
import org.apache.lucene.analysis.Token;
|
||||||
|
@ -60,7 +59,7 @@ public class AnalysisRequestHandler extends RequestHandlerBase {
|
||||||
public void init(NamedList args) {
|
public void init(NamedList args) {
|
||||||
super.init(args);
|
super.init(args);
|
||||||
|
|
||||||
inputFactory = BaseXMLInputFactory.newInstance();
|
inputFactory = XMLInputFactory.newInstance();
|
||||||
try {
|
try {
|
||||||
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
||||||
// XMLInputFactory, as that implementation tries to cache and reuse the
|
// XMLInputFactory, as that implementation tries to cache and reuse the
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
|
|
||||||
package org.apache.solr.handler;
|
package org.apache.solr.handler;
|
||||||
|
|
||||||
import javanet.staxutils.BaseXMLInputFactory;
|
|
||||||
import org.apache.solr.common.SolrException;
|
import org.apache.solr.common.SolrException;
|
||||||
import org.apache.solr.common.params.MapSolrParams;
|
import org.apache.solr.common.params.MapSolrParams;
|
||||||
import org.apache.solr.common.params.SolrParams;
|
import org.apache.solr.common.params.SolrParams;
|
||||||
|
@ -68,7 +67,7 @@ public class XmlUpdateRequestHandler extends ContentStreamHandlerBase {
|
||||||
public void init(NamedList args) {
|
public void init(NamedList args) {
|
||||||
super.init(args);
|
super.init(args);
|
||||||
|
|
||||||
inputFactory = BaseXMLInputFactory.newInstance();
|
inputFactory = XMLInputFactory.newInstance();
|
||||||
try {
|
try {
|
||||||
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
// The java 1.6 bundled stax parser (sjsxp) does not currently have a thread-safe
|
||||||
// XMLInputFactory, as that implementation tries to cache and reuse the
|
// XMLInputFactory, as that implementation tries to cache and reuse the
|
||||||
|
|
|
@ -39,10 +39,10 @@
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
<version>1.5.3</version>
|
<version>1.5.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Your app will need an slf4j implementation, it does not matter which one...
|
Your app will need an slf4j implementation, it does not matter which one...
|
||||||
|
@ -50,6 +50,7 @@
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-log4j12</artifactId>
|
<artifactId>slf4j-log4j12</artifactId>
|
||||||
<version>1.5.3</version>
|
<version>1.5.3</version>
|
||||||
|
<scope>runtime</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
|
@ -93,11 +93,6 @@
|
||||||
<artifactId>commons-io</artifactId>
|
<artifactId>commons-io</artifactId>
|
||||||
<version>1.3.2</version>
|
<version>1.3.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>commons-logging</groupId>
|
|
||||||
<artifactId>commons-logging</artifactId>
|
|
||||||
<version>1.0.4</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Solr specific commons csv -->
|
<!-- Solr specific commons csv -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -106,7 +101,7 @@
|
||||||
<version>@maven_version@</version>
|
<version>@maven_version@</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Stax -->
|
<!-- Stax : we could exclude this because already dependancy of solrj -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>woodstox</groupId>
|
<groupId>woodstox</groupId>
|
||||||
<artifactId>wstx-asl</artifactId>
|
<artifactId>wstx-asl</artifactId>
|
||||||
|
@ -116,12 +111,7 @@
|
||||||
<groupId>org.apache.geronimo.specs</groupId>
|
<groupId>org.apache.geronimo.specs</groupId>
|
||||||
<artifactId>geronimo-stax-api_1.0_spec</artifactId>
|
<artifactId>geronimo-stax-api_1.0_spec</artifactId>
|
||||||
<version>1.0.1</version>
|
<version>1.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>stax-utils</groupId>
|
|
||||||
<artifactId>stax-utils</artifactId>
|
|
||||||
<version>snapshot-20040917</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -16,18 +16,15 @@ package org.apache.solr.handler;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import javanet.staxutils.BaseXMLInputFactory;
|
|
||||||
import org.apache.lucene.analysis.Token;
|
|
||||||
import org.apache.solr.common.util.NamedList;
|
import org.apache.solr.common.util.NamedList;
|
||||||
import org.apache.solr.util.AbstractSolrTestCase;
|
import org.apache.solr.util.AbstractSolrTestCase;
|
||||||
|
|
||||||
import javax.xml.stream.XMLInputFactory;
|
import javax.xml.stream.XMLInputFactory;
|
||||||
import javax.xml.stream.XMLStreamReader;
|
import javax.xml.stream.XMLStreamReader;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class AnalysisRequestHandlerTest extends AbstractSolrTestCase {
|
public class AnalysisRequestHandlerTest extends AbstractSolrTestCase {
|
||||||
private XMLInputFactory inputFactory = BaseXMLInputFactory.newInstance();
|
private XMLInputFactory inputFactory = XMLInputFactory.newInstance();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSchemaFile() {
|
public String getSchemaFile() {
|
||||||
|
|
|
@ -4,18 +4,14 @@ import org.apache.solr.util.AbstractSolrTestCase;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
import javanet.staxutils.BaseXMLInputFactory;
|
|
||||||
|
|
||||||
import javax.xml.stream.XMLInputFactory;
|
import javax.xml.stream.XMLInputFactory;
|
||||||
import javax.xml.stream.XMLStreamReader;
|
import javax.xml.stream.XMLStreamReader;
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
|
||||||
|
|
||||||
import org.apache.solr.common.SolrInputDocument;
|
import org.apache.solr.common.SolrInputDocument;
|
||||||
|
|
||||||
public class XmlUpdateRequestHandlerTest extends AbstractSolrTestCase
|
public class XmlUpdateRequestHandlerTest extends AbstractSolrTestCase
|
||||||
{
|
{
|
||||||
private XMLInputFactory inputFactory = BaseXMLInputFactory.newInstance();
|
private XMLInputFactory inputFactory = XMLInputFactory.newInstance();
|
||||||
protected XmlUpdateRequestHandler handler;
|
protected XmlUpdateRequestHandler handler;
|
||||||
|
|
||||||
@Override public String getSchemaFile() { return "schema.xml"; }
|
@Override public String getSchemaFile() { return "schema.xml"; }
|
||||||
|
|
Loading…
Reference in New Issue